Skip to content

Change volume mount point from /var/lib/postgresql/data to /var/lib/postgresql#499

Open
rmbruntz wants to merge 1 commit intoPeppermint-Lab:mainfrom
rmbruntz:main
Open

Change volume mount point from /var/lib/postgresql/data to /var/lib/postgresql#499
rmbruntz wants to merge 1 commit intoPeppermint-Lab:mainfrom
rmbruntz:main

Conversation

@rmbruntz
Copy link
Copy Markdown

@rmbruntz rmbruntz commented Oct 16, 2025

In postgresql 18, the volume has been changed from /var/lib/postgresql/data to /var/lib/postgresql. See here for the relevant commit.

Version 18 was released September 25, so the :latest tag in peppermint's docker-compose.yml now pulls this. Without this change an anonymous volume is created at /var/lib/postgresql every time the container starts. This fixes the mount point for all three docker compose files to be consistent with version 18.

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 16, 2025

@rmbruntz is attempting to deploy a commit to the peppermint labs Team on Vercel.

A member of the Team first needs to authorize it.

@raweber42
Copy link
Copy Markdown

raweber42 commented Nov 6, 2025

Please get this merged 👍 Can confirm that it fixes the problem.

@raweber42 raweber42 mentioned this pull request Nov 6, 2025
@mikeray321
Copy link
Copy Markdown

You can downgrade to postgres:17 as well which supports the current mount as a temporary workaround:

git diff
diff --git a/docker-compose.yml b/docker-compose.yml
index d4a02b6..f53b861 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -3,7 +3,7 @@ version: "3.1"
services:
peppermint_postgres:
container_name: peppermint_postgres

  • image: postgres:latest
  • image: postgres:17
    restart: always
    ports:
    • 5432:5432

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.

3 participants