From d509b4e788b40fd15708c721d6af55e68a922966 Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Fri, 28 Apr 2023 18:37:47 +0200 Subject: [PATCH] fix: Fix the DB healthcheck to use custom user. --- templates/docker-compose.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 04d5336..e451847 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -29,7 +29,7 @@ services: image: "{{ sonarqube_db_image }}" restart: always healthcheck: - test: /usr/bin/pg_isready + test: /usr/bin/pg_isready -U "{{ sonarqube_db_user }}"" interval: 5s timeout: 10s retries: 120