Skip to content

Commit 3a8c57a

Browse files
committed
fix: fixed a problem with the mount path which cased an error while building:
Error Message from postgres-1: "Error: in 18+, these Docker images are configured to store database data in a format which is compatible with "pg_ctlcluster" (specifically, using major-version-specific directory names).  This better reflects how PostgreSQL itself works, and how upgrades are to be performed. See also docker-library/postgres#1259 Counter to that, there appears to be PostgreSQL data in: /var/lib/postgresql/data (unused mount/volume) This is usually the result of upgrading the Docker image without upgrading the underlying database using "pg_upgrade" (which requires both versions). The suggested container configuration for 18+ is to place a single mount at /var/lib/postgresql which will then place PostgreSQL data in a subdirectory, allowing usage of "pg_upgrade --link" without mount point boundary issues."
1 parent 886ca8d commit 3a8c57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/postgres/compose.base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
restart: always
55
shm_size: 128mb
66
volumes:
7-
- directloan-db:/var/lib/postgresql/data
7+
- directloan-db:/var/lib/postgresql/
88
networks:
99
- backend_network
1010
environment:

0 commit comments

Comments
 (0)