Skip to content

Commit b83ec30

Browse files
iobrunoclaude
andcommitted
fix/hive-pgsql: Fix Postgres volume mount and healthcheck in Hive DB service
Update volume mount to /var/lib/postgresql to avoid nested data dir issues introduced in postgres:18-alpine and later (docker-library/postgres#1394), and use $$POSTGRES_USER env var in healthcheck for consistency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent adfbd87 commit b83ec30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

module5-batch-processing/compose.spark-4.1-standalone.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ services:
109109
ports:
110110
- '5433:5432'
111111
volumes:
112-
- vol-hive-db:/var/lib/postgresql/data
112+
- vol-hive-db:/var/lib/postgresql
113113
healthcheck:
114-
test: ["CMD-SHELL", "pg_isready -U postgres"]
114+
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
115115
interval: 5s
116116
timeout: 5s
117117
retries: 5

0 commit comments

Comments
 (0)