chore: update docker-compose.yml to allow dynamic initialization SQL file path
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 5s

This commit is contained in:
Julien Froidefond
2025-12-17 12:52:53 +01:00
parent 87a24d7ebf
commit 0742aae92f
2 changed files with 2 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ services:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
-${INIT_SQL:-./scripts/init.sql}:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U peakskills_user -d peakskills"]
interval: 10s