chore: add db health check to docker compose

Safer wafe to depend on database startup.

Signed-off-by: Trezy <tre@trezy.com>
This commit is contained in:
Trezy
2026-05-19 19:46:58 +03:00
committed by Tangled
parent cc92594506
commit 8bd556f65b
+7
View File
@@ -37,6 +37,13 @@ services:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql
- ./scripts/init-dev-dbs.sql:/docker-entrypoint-initdb.d/init-dev-dbs.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d pds"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
traefik:
profiles: [dev]