From 2083941361b7565b844498a14a8fc4365b637b07 Mon Sep 17 00:00:00 2001 From: Yarmeli <32551958+Yarmeli@users.noreply.github.com> Date: Sat, 8 Jun 2024 15:31:59 +0100 Subject: [PATCH] Fix postgres health check throwing fatal errors --- templates/compose/logto.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/logto.yaml b/templates/compose/logto.yaml index b1c15b2f7..d52de902b 100644 --- a/templates/compose/logto.yaml +++ b/templates/compose/logto.yaml @@ -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