From e2dccd5c68bddbb18d09e15d8bd4b564acd87ada Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 5 Mar 2026 02:54:24 -0300 Subject: [PATCH 1/2] fix/dbt-postgres: Fix postgres volume mount and healthcheck Fix for postgres:18-alpine and later versions, since the default data directory changed from /var/lib/postgresql/data to /var/lib/postgresql. See: https://github.com/docker-library/postgres/pull/1394 Also use $$POSTGRES_USER env var in healthcheck instead of hardcoded username. Co-Authored-By: Claude Opus 4.6 --- module4-analytics-engineering/postgres/compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module4-analytics-engineering/postgres/compose.yaml b/module4-analytics-engineering/postgres/compose.yaml index 9fe5cd8b..04b9e400 100644 --- a/module4-analytics-engineering/postgres/compose.yaml +++ b/module4-analytics-engineering/postgres/compose.yaml @@ -11,9 +11,9 @@ services: ports: - '5432:5432' volumes: - - vol-ingest-db:/var/lib/postgresql/data + - vol-ingest-db:/var/lib/postgresql healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres"] + test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"] interval: 5s timeout: 5s retries: 5 From 5a8cd8707eaa27d8bccc3f65d9ac0795fd5a0b3f Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 5 Mar 2026 03:00:35 -0300 Subject: [PATCH 2/2] fix/dbt-postgres: Upgrade default postgres image to 18-alpine Co-Authored-By: Claude Opus 4.6 --- module4-analytics-engineering/postgres/compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module4-analytics-engineering/postgres/compose.yaml b/module4-analytics-engineering/postgres/compose.yaml index 04b9e400..be668a6b 100644 --- a/module4-analytics-engineering/postgres/compose.yaml +++ b/module4-analytics-engineering/postgres/compose.yaml @@ -1,4 +1,4 @@ -x-postgres-image: &postgres-image postgres:${POSTGRES_VERSION:-17-alpine} +x-postgres-image: &postgres-image postgres:${POSTGRES_VERSION:-18-alpine} services: ingest-db: