Skip to content

fix(infra): pin PGDATA path for forward-compatible Postgres upgrades#707

Merged
wpfleger96 merged 1 commit into
mainfrom
fix/postgres-pgdata
May 21, 2026
Merged

fix(infra): pin PGDATA path for forward-compatible Postgres upgrades#707
wpfleger96 merged 1 commit into
mainfrom
fix/postgres-pgdata

Conversation

@wpfleger96
Copy link
Copy Markdown
Collaborator

@wpfleger96 wpfleger96 commented May 21, 2026

Summary

  • Pin PGDATA=/var/lib/postgresql/data explicitly in the postgres service's environment block in docker-compose.yml

The repo currently uses postgres:17-alpine where this path is already the default, making this a no-op today. The explicit pin ensures volume mounts remain stable when Renovate PR #676 upgrades to Postgres 18, which changes the default PGDATA location. Setting it proactively avoids a broken docker compose up after the image tag bump.

Postgres 18 changed the default PGDATA from /var/lib/postgresql/data
to /var/lib/postgresql/18/docker. Pinning PGDATA keeps existing dev
volumes working across the version bump.
@wpfleger96 wpfleger96 requested a review from a team as a code owner May 21, 2026 21:01
@wpfleger96 wpfleger96 changed the title fix(infra): pin PGDATA path for Postgres 18 compatibility fix(infra): pin PGDATA path for forward-compatible Postgres upgrades May 21, 2026
@wpfleger96 wpfleger96 merged commit cfd5a82 into main May 21, 2026
15 checks passed
@wpfleger96 wpfleger96 deleted the fix/postgres-pgdata branch May 21, 2026 21:57
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