To serve dbt docs in production, you will need to enable a container to host the dbt docs webserver in the cloud service you are using.
/path/to/<mage_project>/dbt
directory.
/dbt
directory will serve as a “super-project” for all of your dbt projects in your Mage project./.../<mage_project>/dbt
directory has the files dbt_project.yml
, profiles.yml
, and packages.yml
. These files are needed for dbt to create docs for all the projects within this directory.
dbt_project.yml
profiles.yml
: The config in this file is not used, but it needs to still be a valid output target in order for the project to compile.
packages.yml
: Add all projects that you want to be included in the documentation.
docs_service_ip
at the end of terraform apply
with the IP to access the dbt docs in the cloud.