From f3fe4433ae31c6c7e7fe58ca058170c8c1957e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Salazar?= Date: Mon, 13 May 2024 21:33:36 -0600 Subject: [PATCH] update sonarqube template --- templates/compose/sonarqube.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/compose/sonarqube.yaml b/templates/compose/sonarqube.yaml index a0df26411..f88c7c788 100644 --- a/templates/compose/sonarqube.yaml +++ b/templates/compose/sonarqube.yaml @@ -11,12 +11,18 @@ services: - SONAR_JDBC_URL=jdbc:postgresql://postgresql:5432/${POSTGRES_DB:-sonar} - SONAR_JDBC_USERNAME=$SERVICE_USER_POSTGRES - SONAR_JDBC_PASSWORD=$SERVICE_PASSWORD_POSTGRES + - SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true volumes: - sonarqube-data:/opt/sonarqube - sonarqube-conf:/opt/sonarqube/conf - sonarqube-extensions:/opt/sonarqube/extensions - sonarqube-logs:/opt/sonarqube/logs - sonarqube-bundled-plugins:/opt/sonarqube/lib/bundled-plugins + healthcheck: + test: ["CMD", "wget", "-q", "--spider", "http://localhost:9000"] + interval: 5s + timeout: 20s + retries: 10 depends_on: postgresql: condition: service_healthy