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>
This commit is contained in:
1 parent
0fd2520088
commit
08c463542f
1 file changed
+3
-1
@@ -2,7 +2,9 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
volumes:
|
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:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in new issue
Block a user