From f526692e59b7e152a07a009fea4ebbfcfe27dbe7 Mon Sep 17 00:00:00 2001 From: "Guillaume \"B.B.\" Van Hemmen" Date: Thu, 10 Oct 2024 17:40:59 +0200 Subject: [PATCH] #0000 - Fix syntax error in PostgreSQL healthcheck command The incorrect double dollar sign syntax in the healthcheck command has been corrected. This ensures that the environment variable POSTGRES_USERNAME is properly interpolated. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 125bf9d..bbeb332 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,7 +54,7 @@ services: condition: any delay: 5s healthcheck: - test: [ "CMD-SHELL", "pg_isready", "-U", "$${POSTGRES_USERNAME}", "-d", "sonar" ] + test: [ "CMD-SHELL", "pg_isready", "-U", "${POSTGRES_USERNAME}", "-d", "sonar" ] interval: 1s timeout: 5s retries: 10