-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yaml
50 lines (46 loc) · 1.08 KB
/
docker-compose.yaml
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
49
50
version: "3"
services:
sonarqube:
image: sonarqube:8.2-community
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks:
- sonarnet
environment:
- SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar
- SONARQUBE_JDBC_USERNAME=sonar
- SONARQUBE_JDBC_PASSWORD=sonar
volumes:
- sonarqube_conff:/opt/sonarqube/conf
- sonarqube_dataa:/opt/sonarqube/data
- sonarqube_extensionss:/opt/sonarqube/extensions
- sonarqube_bundled-pluginss:/opt/sonarqube/lib/bundled-plugins
deploy:
resources:
limits:
cpus: '0.001'
memory: 500M
reservations:
cpus: '0.0001'
memory: 200M
db:
image: postgres
networks:
- sonarnet
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
volumes:
- postgresqll:/var/lib/postgresql
- postgresql_dataa:/var/lib/postgresql/data
networks:
sonarnet:
volumes:
sonarqube_conff:
sonarqube_dataa:
sonarqube_extensionss:
sonarqube_bundled-pluginss:
postgresqll:
postgresql_dataa: