Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion deploy/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ services:
POSTGRES_USER: fsh
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
volumes:
- pg_data:/var/lib/postgresql/data
# The 18+ images keep PGDATA in a versioned subdirectory (/var/lib/postgresql/18/docker) and
# refuse to start with a mount at the old /var/lib/postgresql/data, even on an empty volume.
- pg_data:/var/lib/postgresql
- ./postgres-init:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fsh -d fsh"]
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/postgres-init/01-create-databases.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Postgres init for fullstackhero
-- This file runs only on first boot (when /var/lib/postgresql/data is empty).
-- This file runs only on first boot (when the data directory under /var/lib/postgresql is empty).
-- The `fsh` database itself is created by POSTGRES_DB= in the compose env;
-- we just add the extensions the framework relies on.

Expand Down
Loading