-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose-sonar.yml
26 lines (24 loc) · 1.11 KB
/
docker-compose-sonar.yml
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
# docker-sonar configuration,
# add this to your docker-compose up if you want to have sonarqube
# docker-compose -f docker-compose.yml -f docker-compose-sonar.yml up
version: "3"
services:
sonar:
image: sonarqube:7.1 # Sonar > 7.1 needs es config on host, see
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-dev-mode
container_name: sonarcube
depends_on: # start proxy after all the others
- postgres
extra_hosts:
- ${DC_HOSTNAME}:${DC_HOSTIP}
networks:
- devstacknetwork
environment:
# the Default User and Passwort for Postgress is sonar/sonar
- SONARQUBE_JDBC_URL=jdbc:postgresql://postgres:5432/sonar
volumes:
- ${DC_BASE_DATA_DIR}/sonar/sonarqube_conf:/opt/sonarqube/conf
- ${DC_BASE_DATA_DIR}/sonar/sonarqube_data:/opt/sonarqube/data
- ${DC_BASE_DATA_DIR}/sonar/sonarqube_extensions:/opt/sonarqube/extensions
- ${DC_BASE_DATA_DIR}/sonar/sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
- ${DC_BASE_DATA_DIR}/sonar/sonarqube_logs:/opt/sonarqube/logs