Skip to content

fix/prefect-pgsql-mount: Fix Postgres volume mount, healthcheck and upgrade to 18-alpine#181

Open
iobruno wants to merge 2 commits intomasterfrom
fix/prefect-pgsql-mount
Open

fix/prefect-pgsql-mount: Fix Postgres volume mount, healthcheck and upgrade to 18-alpine#181
iobruno wants to merge 2 commits intomasterfrom
fix/prefect-pgsql-mount

Conversation

@iobruno
Copy link
Owner

@iobruno iobruno commented Mar 5, 2026

Summary

  • Fix volume mount from /var/lib/postgresql/data to /var/lib/postgresql
    to avoid breakage due to PGDATA change in postgres:18-alpine+
  • Use $$POSTGRES_USER env var in healthcheck instead of hardcoded username
  • Upgrade default Postgres image from 17-alpine to 18-alpine

This addresses a breaking change introduced in docker-library/postgres#1394.

Test plan

  • Run docker compose up and verify both ingest-db and prefect-metastore start and pass healthchecks
  • Verify data persistence across container restarts

🤖 Generated with Claude Code

iobruno and others added 2 commits March 5, 2026 02:56
Fix volume mount point from /var/lib/postgresql/data to /var/lib/postgresql
and use $$POSTGRES_USER env var in pg_isready healthcheck for both
ingest-db and prefect-metastore services.

This addresses a breaking change in postgres:18-alpine and later versions
introduced by docker-library/postgres#1394.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant