From 0cf3740488aa76940c520c9d2dc4aa5aff9e39a6 Mon Sep 17 00:00:00 2001 From: Charles SENGES Date: Sun, 8 Dec 2024 01:05:36 +0100 Subject: [PATCH] fix(compose.yaml): add explicit db name and user to pg_isready check --- .github/deployment/self-host/compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/deployment/self-host/compose.yaml b/.github/deployment/self-host/compose.yaml index 60f49f6ab8..2af5427daa 100644 --- a/.github/deployment/self-host/compose.yaml +++ b/.github/deployment/self-host/compose.yaml @@ -59,7 +59,7 @@ services: # or you may add 'POSTGRES_HOST_AUTH_METHOD=trust' to ignore postgres security policy POSTGRES_HOST_AUTH_METHOD: trust healthcheck: - test: ['CMD-SHELL', 'pg_isready'] + test: ['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"] interval: 1m start_interval: 10s start_period: 1m