From c286014ea45210604e601d4a8b02b447b108b853 Mon Sep 17 00:00:00 2001 From: rmayore <97431805+rmayore@users.noreply.github.com> Date: Tue, 7 Jan 2025 00:32:22 +0300 Subject: [PATCH] fix(#198): add configurable POSTGRES_PORT to docker compose file (#199) --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index f6aa8c9..c39352c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_HOST=${POSTGRES_HOST} - POSTGRES_DB=${POSTGRES_DB} - - POSTGRES_PORT=5432 + - POSTGRES_PORT=${POSTGRES_PORT:-5432} - POSTGRES_SCHEMA=${POSTGRES_SCHEMA} - POSTGRES_TABLE=${POSTGRES_TABLE} restart: always @@ -29,6 +29,7 @@ services: working_dir: /dbt/ environment: - POSTGRES_HOST=${POSTGRES_HOST} + - POSTGRES_PORT=${POSTGRES_PORT:-5432} - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_DB}