Skip to content

Commit 486fbab

Browse files
MatsG23Mats Gertsen
andauthored
[Misc] Update volume path for Postgres 18+ compatibility
Postgres 18+ expects the volume mount at /var/lib/postgresql/ so it can manage the data directory structure itself with major-version-specific directory names. See: docker-library/postgres#1259 Co-authored-by: Mats Gertsen <mats.gertsen@flavia-it.de>
1 parent a7ef84c commit 486fbab

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

16/postgres-tomcat/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
image: "postgres:18"
5050
container_name: xwiki-postgres-db
5151
volumes:
52-
- postgres-data:/var/lib/postgresql/data
52+
- postgres-data:/var/lib/postgresql
5353
environment:
5454
- POSTGRES_ROOT_PASSWORD=${POSTGRES_ROOT_PASSWORD}
5555
- POSTGRES_PASSWORD=${DB_PASSWORD}

17.4/postgres-tomcat/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
image: "postgres:18"
5050
container_name: xwiki-postgres-db
5151
volumes:
52-
- postgres-data:/var/lib/postgresql/data
52+
- postgres-data:/var/lib/postgresql
5353
environment:
5454
- POSTGRES_ROOT_PASSWORD=${POSTGRES_ROOT_PASSWORD}
5555
- POSTGRES_PASSWORD=${DB_PASSWORD}

17/postgres-tomcat/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
image: "postgres:18"
5050
container_name: xwiki-postgres-db
5151
volumes:
52-
- postgres-data:/var/lib/postgresql/data
52+
- postgres-data:/var/lib/postgresql
5353
environment:
5454
- POSTGRES_ROOT_PASSWORD=${POSTGRES_ROOT_PASSWORD}
5555
- POSTGRES_PASSWORD=${DB_PASSWORD}

0 commit comments

Comments
 (0)