fix: use Postgres PGDATA subdirectory

This commit is contained in:
2026-06-05 20:16:34 +00:00
parent a7bdd4cd16
commit c9048aa94b

View File

@@ -99,6 +99,9 @@ services:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB:-proxcenter} - POSTGRES_DB=${POSTGRES_DB:-proxcenter}
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C - POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C
# Use a child directory under the NFS bind mount so Postgres does not
# need to chmod the NFS mount root during initdb.
- PGDATA=/var/lib/postgresql/data/pgdata
volumes: volumes:
- ${DockerData}/proxcenter/postgres_data:/var/lib/postgresql/data - ${DockerData}/proxcenter/postgres_data:/var/lib/postgresql/data
# Port is intentionally not published. Postgres is reachable only # Port is intentionally not published. Postgres is reachable only