Skip to content

Commit 8ae358a

Browse files
trevexclaude
andcommitted
fix(compose): mount postgres volume at /var/lib/postgresql for pg 18
Postgres 18+ stores data in a version-specific subdirectory and aborts on startup when a volume is mounted at the legacy /var/lib/postgresql/data path. The pg16->pg18 bump left the old mount in place, so the container exited(1) before the healthcheck could run. Mount at the parent dir as the image recommends. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3fb015d commit 8ae358a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎deploy/compose/dev.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ services:
1111
ports:
1212
- "5432:5432"
1313
volumes:
14-
- knot-dev-postgres:/var/lib/postgresql/data
14+
# pg 18+ stores data in a version-specific subdir; mount at the parent,
15+
# not /var/lib/postgresql/data (the image aborts on the legacy path).
16+
- knot-dev-postgres:/var/lib/postgresql
1517
healthcheck:
1618
test: ["CMD-SHELL", "pg_isready -U knot -d knot"]
1719
interval: 2s

0 commit comments

Comments
 (0)