Fix postgres health check throwing fatal errors

This commit is contained in:
Yarmeli
2024-06-08 15:31:59 +01:00
committed by GitHub
parent 45017efe00
commit 2083941361

View File

@@ -32,7 +32,7 @@ services:
volumes:
- logto-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "$SERVICE_USER_POSTGRES"]
test: ["CMD", "pg_isready", "-U", "$SERVICE_USER_POSTGRES", "-d", "$POSTGRES_DB"]
interval: 5s
timeout: 20s
retries: 10