Skip to content

Commit

Permalink
chore(pipeline): fix in-container default DBT conn
Browse files Browse the repository at this point in the history
By default, we run DBT from within the airflow container (as is the case
in production).

Therefore it should be automatically connected to the docker hostname
and port of the datawarehouse, not the host ones.

If you need to use DBT from outside docker, then override the
appropriate environment vars (see .env.template)
  • Loading branch information
vperron authored and vmttn committed Jul 29, 2024
1 parent 09981b2 commit dbe3366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipeline/dbt/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ data_inclusion:
dev:
type: postgres
threads: 1
host: "{{ env_var('POSTGRES_HOST', 'localhost') }}"
port: "{{ env_var('POSTGRES_PORT', '5455') | int }}"
host: "{{ env_var('POSTGRES_HOST', 'target-db') }}"
port: "{{ env_var('POSTGRES_PORT', '5432') | int }}"
user: "{{ env_var('POSTGRES_USER', 'data-inclusion') }}"
password: "{{ env_var('POSTGRES_PASSWORD', 'data-inclusion') }}"
dbname: "{{ env_var('POSTGRES_DB', 'data-inclusion') }}"
Expand Down

0 comments on commit dbe3366

Please sign in to comment.