Skip to content

Commit c286014

Browse files
authored
fix(#198): add configurable POSTGRES_PORT to docker compose file (#199)
1 parent 3fe07b5 commit c286014

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
2020
- POSTGRES_HOST=${POSTGRES_HOST}
2121
- POSTGRES_DB=${POSTGRES_DB}
22-
- POSTGRES_PORT=5432
22+
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
2323
- POSTGRES_SCHEMA=${POSTGRES_SCHEMA}
2424
- POSTGRES_TABLE=${POSTGRES_TABLE}
2525
restart: always
@@ -29,6 +29,7 @@ services:
2929
working_dir: /dbt/
3030
environment:
3131
- POSTGRES_HOST=${POSTGRES_HOST}
32+
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
3233
- POSTGRES_USER=${POSTGRES_USER}
3334
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
3435
- POSTGRES_DB=${POSTGRES_DB}

0 commit comments

Comments
 (0)