Merge pull request #2386 from Yarmeli/fix-logto-healthcheck

Fix postgres health check throwing fatal errors
This commit is contained in:
Andras Bacsai 2024-06-10 12:58:22 +02:00 committed by GitHub
commit 3155d4afdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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