From 3e23d9541b44a790da83fa8942abd059b0802cfc Mon Sep 17 00:00:00 2001 From: Mathieu Boutolleau <22999546+mboutolleau@users.noreply.github.com> Date: Sat, 11 Apr 2026 21:39:11 +0200 Subject: [PATCH] Change PostgreSQL data directory to /var/lib/postgresql/ Starting with PostgreSQL 18, the data directory (PGDATA) of the Docker Image has changed to be version specific. For PostgreSQL 18 it is /var/lib/postgresql/18/docker/. This means that to persist data, mounts and volumes should target the new location: /var/lib/postgresql/. Fixes DioCrafts/OxiCloud#281 --- doc/deployment.md | 2 +- doc/wopi-integration.md | 2 +- docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/deployment.md b/doc/deployment.md index 67f6c082..8b30acc0 100644 --- a/doc/deployment.md +++ b/doc/deployment.md @@ -34,7 +34,7 @@ services: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres volumes: - - pg_data:/var/lib/postgresql/data + - pg_data:/var/lib/postgresql/ - ./db/schema.sql:/docker-entrypoint-initdb.d/schema.sql healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] diff --git a/doc/wopi-integration.md b/doc/wopi-integration.md index 51241c34..aed74735 100644 --- a/doc/wopi-integration.md +++ b/doc/wopi-integration.md @@ -1039,7 +1039,7 @@ services: networks: - oxicloud volumes: - - pg_data:/var/lib/postgresql/data + - pg_data:/var/lib/postgresql/ - ./db/schema.sql:/docker-entrypoint-initdb.d/10-schema.sql healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] diff --git a/docker-compose.yml b/docker-compose.yml index 15f0a9a3..aa209c78 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: networks: - oxicloud volumes: - - pg_data:/var/lib/postgresql/data + - pg_data:/var/lib/postgresql/ healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s