-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 797 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
sonar:
image: sonarqube:community
container_name: sonar
ports:
- "9000:9000"
environment:
- SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:9000/api/system/status | grep -q 'UP'"]
interval: 5s
timeout: 3s
retries: 20
volumes:
- sonar-data:/opt/sonarqube/data
- sonar-extensions:/opt/sonarqube/extensions
- sonar-logs:/opt/sonarqube/logs
sonar-init:
image: curlimages/curl:latest
container_name: sonar-init
entrypoint: ["sh", "/init.sh"]
volumes:
- ./scripts/sonar-init.sh:/init.sh
- ./secrets:/secrets
depends_on:
sonar:
condition: service_healthy
volumes:
sonar-data:
sonar-extensions:
sonar-logs: