From fd155b781954b89d7e05c23eb040a62042e15874 Mon Sep 17 00:00:00 2001 From: Vasyl Druchok <86302542+DVasyl13@users.noreply.github.com> Date: Tue, 18 Nov 2025 20:45:35 +0100 Subject: [PATCH] Update PostgreSQL volume mount for compatibility with v18+ Change volume mount from /var/lib/postgresql/data to /var/lib/postgresql to align with PostgreSQL 18+ Docker image requirements and best practices. Fixes issue where PostgreSQL 18+ fails to start with the old data directory structure. See: https://github.com/docker-library/postgres/pull/1259 --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 52866af..42f3528 100644 --- a/compose.yaml +++ b/compose.yaml @@ -31,7 +31,7 @@ services: # secrets: # - db-password # volumes: -# - db-data:/var/lib/postgresql/data +# - db-data:/var/lib/postgresql # environment: # - POSTGRES_DB=example # - POSTGRES_PASSWORD_FILE=/run/secrets/db-password