-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
48 lines (45 loc) · 1.12 KB
/
docker-compose.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.0"
services:
sonarqube:
image: 'sonarqube:latest'
restart: always
ports:
- '9001:9000'
networks:
- sonarnet
environment:
SONAR_ES_BOOTSTRAP_CHECKS_DISABLE: 'true'
SONAR_JDBC_URL: 'jdbc:postgresql://db:5432/sonar'
SONAR_JDBC_USERNAME: 'sonar'
SONAR_JDBC_PASSWORD: 'sonar'
depends_on:
- db
volumes:
- ./extension:/opt/sonarqube/extensions/plugins/
- sonarqube_conf:/opt/sonarqube/conf
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
#- sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
db:
image: 'postgres:latest'
restart: always
networks:
- sonarnet
environment:
POSTGRES_DB: 'sonar'
POSTGRES_USER: 'sonar'
POSTGRES_PASSWORD: 'sonar'
volumes:
- postgresql:/var/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
networks:
sonarnet:
driver: bridge
volumes:
postgresql:
postgresql_data:
sonarqube_conf:
sonarqube_data:
sonarqube_extensions:
sonarqube_logs: