File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : " 2"
2
+
3
+ services :
4
+ sonarqube :
5
+ image : sonarqube
6
+ ports :
7
+ - " 8080:9000"
8
+ networks :
9
+ - sonarnet
10
+ environment :
11
+ - SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar
12
+ volumes :
13
+ - sonarqube_conf:/opt/sonarqube/conf
14
+ - sonarqube_data:/opt/sonarqube/data
15
+ - sonarqube_extensions:/opt/sonarqube/extensions
16
+ - sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
17
+
18
+ db :
19
+ image : postgres
20
+ networks :
21
+ - sonarnet
22
+ environment :
23
+ - POSTGRES_USER=sonar
24
+ - POSTGRES_PASSWORD=sonar
25
+ volumes :
26
+ - postgresql:/var/lib/postgresql
27
+ # This needs explicit mapping due to https://github.com/docker-library/postgres/blob/4e48e3228a30763913ece952c611e5e9b95c8759/Dockerfile.template#L52
28
+ - postgresql_data:/var/lib/postgresql/data
29
+
30
+ networks :
31
+ sonarnet :
32
+ driver : bridge
33
+
34
+ volumes :
35
+ sonarqube_conf :
36
+ sonarqube_data :
37
+ sonarqube_extensions :
38
+ sonarqube_bundled-plugins :
39
+ postgresql :
40
+ postgresql_data :
41
+
You can’t perform that action at this time.
0 commit comments