From 08c463542f56872a267e5b2e1e1cf421f0ea8a6a Mon Sep 17 00:00:00 2001 From: Vlad Shulcz Date: Tue, 18 Aug 2026 04:22:58 +0300 Subject: [PATCH] docs: update the postgres bind mount in the compose example (#1761) Postgres 18 moved its declared volume to /var/lib/postgresql, so the example container fails to start with the old path. Signed-off-by: vshulcz --- .examples/docker-compose-postgres-storage/compose.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.examples/docker-compose-postgres-storage/compose.yaml b/.examples/docker-compose-postgres-storage/compose.yaml index 3abfd744..c8493331 100644 --- a/.examples/docker-compose-postgres-storage/compose.yaml +++ b/.examples/docker-compose-postgres-storage/compose.yaml @@ -2,7 +2,9 @@ services: postgres: image: postgres volumes: - - ./data/db:/var/lib/postgresql/data + # PostgreSQL 18 and above declare the volume at /var/lib/postgresql. + # For 17 and earlier, mount ./data/db at /var/lib/postgresql/data instead. + - ./data/db:/var/lib/postgresql ports: - "5432:5432" environment: