From 340faf534123926c5c9c6bbddc8a58ff8a272af3 Mon Sep 17 00:00:00 2001 From: Andre Mainka Date: Fri, 24 Jun 2022 12:02:05 +0200 Subject: [PATCH] lifecycle: Update postgres healthcheck for compose with user information (#3143) Update postgres healthcheck with user information --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6d35ddc6a..cd2229469 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: image: postgres:12-alpine restart: unless-stopped healthcheck: - test: ["CMD", "pg_isready"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] start_period: 20s interval: 30s retries: 5