Skip to content

Commit 08c4635

Browse files
authored
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 <vshulcz@gmail.com>
1 parent 0fd2520 commit 08c4635

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.examples/docker-compose-postgres-storage/compose.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ services:
22
postgres:
33
image: postgres
44
volumes:
5-
- ./data/db:/var/lib/postgresql/data
5+
# PostgreSQL 18 and above declare the volume at /var/lib/postgresql.
6+
# For 17 and earlier, mount ./data/db at /var/lib/postgresql/data instead.
7+
- ./data/db:/var/lib/postgresql
68
ports:
79
- "5432:5432"
810
environment:

0 commit comments

Comments
 (0)