Skip to content

Fix postgres data volume mount#60

Closed
simolus3 wants to merge 1 commit intomainfrom
fix-postgres-volume
Closed

Fix postgres data volume mount#60
simolus3 wants to merge 1 commit intomainfrom
fix-postgres-volume

Conversation

@simolus3
Copy link
Copy Markdown

@simolus3 simolus3 commented Feb 3, 2026

Starting with postgres version 18, we should mount postgres data to /var/lib/postgresql instead of /var/lib/postgresql/data (source). The reason is that internally, the volume will have separate directories per major Postgres version going forward.

Not doing this means Postgres fails to start, which is reproducible by pulling the latest postgres image and then trying to start a demo. I've also set a fixed major version in the service definition for now, ensuring that the new mount path isn't used for older postgres images.

@rkistner
Copy link
Copy Markdown
Contributor

rkistner commented Feb 3, 2026

This was already fixed in #55 and #56 - I'm confused why github still shows this as a diff?

@simolus3
Copy link
Copy Markdown
Author

simolus3 commented Feb 3, 2026

My bad, sorry for the noise!

@simolus3 simolus3 closed this Feb 3, 2026
@simolus3 simolus3 deleted the fix-postgres-volume branch February 3, 2026 12:58
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.

2 participants