fix: update docker-compose volume mount for PostgreSQL 18+ compatibility#28282
Merged
keithwillcode merged 5 commits intocalcom:mainfrom Mar 6, 2026
Merged
Conversation
PostgreSQL 18+ stores data in /var/lib/postgresql/18/main instead of /var/lib/postgresql/data. The volume mount needs to be at /var/lib/postgresql to capture the new directory structure. Fixes calcom#28281
sahitya-chandra
approved these changes
Mar 5, 2026
keithwillcode
approved these changes
Mar 5, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Updates the volume mount path in
packages/prisma/docker-compose.ymlfrom/var/lib/postgresql/datato/var/lib/postgresqlto fix compatibility with PostgreSQL 18+.PG 18 changed its data directory layout to use
/var/lib/postgresql/18/maininstead of/var/lib/postgresql/data(see docker-library/postgres#1259). The old mount path causes the container to fail the healthcheck andyarn dxto error out.Visual Demo (For contributors especially)
Before (container crash loop):
After (healthy container):
Mandatory Tasks (DO NOT REMOVE)
yarn dx.How should this be tested?
docker compose -f packages/prisma/docker-compose.yml down -vto clear any existing volumesyarn dxdocker ps --filter "name=prisma"should show status ashealthyNo environment variables or test data needed — this only affects the local dev database setup.
Note: Existing users with volumes from older PG versions will need to run
docker compose down -vonce to clear the incompatible volume. This is a local dev database so no data is lost —yarn dxre-seeds everything.