Skip to content

Commit 52e5676

Browse files
authored
Fix volume path for PostgreSQL in develop.md
When running docker compose up --build this happens: ... Attaching to db-1, server-1 db-1 | Error: in 18+, these Docker images are configured to store database data in a db-1 | format which is compatible with "pg_ctlcluster" (specifically, using db-1 | major-version-specific directory names). This better reflects how db-1 | PostgreSQL itself works, and how upgrades are to be performed. db-1 | db-1 | See also docker-library/postgres#1259 ...
1 parent f87d616 commit 52e5676

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/guides/python/develop.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ You'll need to clone a new repository to get a sample application that includes
211211
# secrets:
212212
# - db-password
213213
# volumes:
214-
# - db-data:/var/lib/postgresql/data
214+
# -db-data:/var/lib/postgresql
215215
# environment:
216216
# - POSTGRES_DB=example
217217
# - POSTGRES_PASSWORD_FILE=/run/secrets/db-password
@@ -364,7 +364,7 @@ services:
364364
secrets:
365365
- db-password
366366
volumes:
367-
- db-data:/var/lib/postgresql/data
367+
-db-data:/var/lib/postgresql
368368
environment:
369369
- POSTGRES_DB=example
370370
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
@@ -507,7 +507,7 @@ services:
507507
secrets:
508508
- db-password
509509
volumes:
510-
- db-data:/var/lib/postgresql/data
510+
-db-data:/var/lib/postgresql
511511
environment:
512512
- POSTGRES_DB=example
513513
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password

0 commit comments

Comments
 (0)