Hotfix: postgres pg_isready healthcheck fix 2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-01-20 14:40:15 +03:00
parent 810f63cf70
commit 2762f1d257

View File

@@ -24,7 +24,7 @@ services:
ports:
- "127.0.0.1:${POSTGRES_PORT}:5432"
healthcheck:
test: ["CMD", "pg_isready", "-d", "$${POSTGRES_DB}", "-U", "$${POSTGRES_USER}"]
test: ["CMD", "pg_isready -d $${POSTGRES_DB:-postgres} -U $${POSTGRES_USER:-postgres}"]
interval: 10s
timeout: 5s
retries: 10