From cd9b4567650dd93ee420dfd6a006c4edbdc82f0a Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Mon, 20 Jan 2025 14:36:06 +0300 Subject: [PATCH] Hotfix: postgres pg_isready healthcheck fix --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a3f241e..f474e0b 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", "pg_isready", "-d", "$${POSTGRES_DB}", "-U", "$${POSTGRES_USER}"] interval: 10s timeout: 5s retries: 10 @@ -38,4 +38,4 @@ networks: bot_network: volumes: - postgres_data: \ No newline at end of file + postgres_data: