From c89d931a852b4c66aacde19eae24ffea078c75ed Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Mon, 12 Feb 2024 10:59:46 +0100 Subject: [PATCH] docker-compose.yml: pass user and database name when calling pg_isready The postgres container, within the docker-compose file, starts an internal healthcheck. In this commit we are avoiding the following message to appear: << FATAL: role "root" does not exist >> --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8e068fd..3e6a415 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -122,7 +122,7 @@ services: ports: [] # - 127.0.0.1:5432:5432 healthcheck: - test: ["CMD-SHELL", "pg_isready -d db_prod"] + test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"] interval: 30s timeout: 60s retries: 5