Fix postgres health check throwing fatal errors
This commit is contained in:
parent
45017efe00
commit
2083941361
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user