-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.env.yml
57 lines (57 loc) · 1.22 KB
/
docker-compose.env.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
49
50
51
52
53
54
55
56
57
version: "3.7"
services:
registry:
image: registry:2
restart: always
container_name: myregistry
ports:
- "5000:5000"
postgresql:
container_name: sonarqube-db
build:
context: postgres/
networks:
- sonarnet
volumes:
- postgresql:/var/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
sonarqube:
container_name: sonarqube
build:
context: Tools/sonarqube/
ports:
- "9000:9000"
- "9092:9092"
networks:
- sonarnet
volumes:
- sonarqube_conf:/opt/sonarqube/conf
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
depends_on:
- postgresql
jenkins:
container_name: jenkins
build:
context: jenkins/
privileged: true
user: root
volumes:
- jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8080:8080"
depends_on:
- sonarqube
networks:
sonarnet:
driver: bridge
volumes:
jenkins_home:
postgresql:
postgresql_data:
sonarqube_conf:
sonarqube_data:
sonarqube_extensions:
sonarqube_bundled-plugins: