Skip to content

Commit ebea36c

Browse files
committed
fix: use PostgreSQL 18+ compatible volume mount path
PostgreSQL 18 changed data directory structure to use versioned subdirectories. Mount at /var/lib/postgresql instead of /var/lib/postgresql/data to support all versions 14-18. See: docker-library/postgres#1259
1 parent 3a5318d commit ebea36c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
volumes:
1313
- ./pg/postgresql.conf:/etc/postgresql/postgresql.conf
1414
- ./benchmark/sql/:/etc/postgresql/benchmark/sql
15-
- ./pg/data-latest:/var/lib/postgresql/data
15+
- ./pg/data-latest:/var/lib/postgresql
1616
env_file:
1717
- ./pg/common.env
1818
networks:
@@ -44,7 +44,7 @@ services:
4444
- ./pg/pg_hba-tls.conf:/etc/postgresql/pg_hba.conf
4545
- ./tls/localhost-key.pem:/etc/postgresql/localhost-key.pem
4646
- ./tls/localhost.pem:/etc/postgresql/localhost.pem
47-
- ./pg/data-17:/var/lib/postgresql/data
47+
- ./pg/data-17:/var/lib/postgresql
4848

4949
proxy:
5050
image: cipherstash/proxy:latest

0 commit comments

Comments
 (0)