Skip to content

Commit 69fa016

Browse files
committed
Fix PostgreSQL 18 volume mount for Paperless
- Change volume mount from /var/lib/postgresql/data to /var/lib/postgresql - PostgreSQL 18+ requires single mount at /var/lib/postgresql for compatibility - Fixes migration errors and database initialization issues - Allows proper pg_upgrade usage without mount point boundary issues - Reference: docker-library/postgres#1259 Verified: - Database starts successfully with correct volume structure - All Django migrations apply without errors - Paperless webserver running on http://localhost:8000 - All 7 containers healthy (db, broker, minio, tika, gotenberg, minio-sync, webserver)
1 parent db003ba commit 69fa016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paperless-ngx-dms/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
ports:
1414
- "5433:5432" # Expose voor externe toegang (niet conflicteren met main project)
1515
volumes:
16-
- pgdata:/var/lib/postgresql/data
16+
- pgdata:/var/lib/postgresql
1717
- ./init-db:/docker-entrypoint-initdb.d
1818
environment:
1919
POSTGRES_DB: paperless

0 commit comments

Comments
 (0)