Skip to content

Commit e2dccd5

Browse files
iobrunoclaude
andcommitted
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: docker-library/postgres#1394 Also use $$POSTGRES_USER env var in healthcheck instead of hardcoded username. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent adfbd87 commit e2dccd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module4-analytics-engineering/postgres/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ services:
1111
ports:
1212
- '5432:5432'
1313
volumes:
14-
- vol-ingest-db:/var/lib/postgresql/data
14+
- vol-ingest-db:/var/lib/postgresql
1515
healthcheck:
16-
test: ["CMD-SHELL", "pg_isready -U postgres"]
16+
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
1717
interval: 5s
1818
timeout: 5s
1919
retries: 5

0 commit comments

Comments
 (0)