Skip to content

theholy7/docker-dbt-starter-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-dbt-starter-template

This repository has a basic template to get started with Docker and DBT (data build tool).

How to start

  1. Make sure that you have docker installed and running;
  2. Start the services with docker compose up --build;
  3. Attach to the container running dbt with docker attach docker-dbt-starter-template-app-1
  4. Move into the dbt directory with cd data_warehouse_dbt/
  5. Run dbt run to build the example models

You are now ready to start using DBT, as you've completed the basic setup and flow. You should be able to continue running your DBT commands.

  • Detach: You can detach with ctrl+p ctrl+q which will leave the container running.
  • Exit: You can exit with ctrl+c which will stop the container.
  • DBT Build: Build (run and test) the models with dbt build.
  • DBT Run: Build the models with dbt run.
  • DBT Docs: Generate the docs with dbt docs generate first, and then dbt docs serve --host 0.0.0.0.

Note: If you modify the docker-composse.yml file, you need to update the dbt_project.yml file to still connect to the database.

About

This repository has a basic template to get started with Docker and DBT (data build tool)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors