update sonarqube template

This commit is contained in:
Iván Salazar 2024-05-13 21:33:36 -06:00
parent b528a0f4ec
commit f3fe4433ae

View File

@ -11,12 +11,18 @@ services:
- SONAR_JDBC_URL=jdbc:postgresql://postgresql:5432/${POSTGRES_DB:-sonar} - SONAR_JDBC_URL=jdbc:postgresql://postgresql:5432/${POSTGRES_DB:-sonar}
- SONAR_JDBC_USERNAME=$SERVICE_USER_POSTGRES - SONAR_JDBC_USERNAME=$SERVICE_USER_POSTGRES
- SONAR_JDBC_PASSWORD=$SERVICE_PASSWORD_POSTGRES - SONAR_JDBC_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true
volumes: volumes:
- sonarqube-data:/opt/sonarqube - sonarqube-data:/opt/sonarqube
- sonarqube-conf:/opt/sonarqube/conf - sonarqube-conf:/opt/sonarqube/conf
- sonarqube-extensions:/opt/sonarqube/extensions - sonarqube-extensions:/opt/sonarqube/extensions
- sonarqube-logs:/opt/sonarqube/logs - sonarqube-logs:/opt/sonarqube/logs
- sonarqube-bundled-plugins:/opt/sonarqube/lib/bundled-plugins - 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: depends_on:
postgresql: postgresql:
condition: service_healthy condition: service_healthy