From 2762f1d257e81468026220f1796f85a067733855 Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Mon, 20 Jan 2025 14:40:15 +0300 Subject: [PATCH] Hotfix: postgres pg_isready healthcheck fix 2 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index f474e0b..f9c3fca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: ports: - "127.0.0.1:${POSTGRES_PORT}:5432" healthcheck: - test: ["CMD", "pg_isready", "-d", "$${POSTGRES_DB}", "-U", "$${POSTGRES_USER}"] + test: ["CMD", "pg_isready -d $${POSTGRES_DB:-postgres} -U $${POSTGRES_USER:-postgres}"] interval: 10s timeout: 5s retries: 10