From 970a0e6fd424cb6ed6284347a684a8784b6a0a79 Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Mon, 20 Jan 2025 15:27:31 +0300 Subject: [PATCH] Hotfix: pg_isready healthcheck --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a3f241e..7617195 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"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] interval: 10s timeout: 5s retries: 10