-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
95 lines (86 loc) · 1.72 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3'
volumes:
jenkins_home:
data:
services:
jenkinsmaster:
build:
context: "jenkins-master"
environment:
- JAVA_OPTS=-Dorg.apache.commons.jelly.tags.fmt.timeZone=Europe/Moscow -Duser.timezone=Europe/Moscow -Dhudson.model.DirectoryBrowserSupport.CSP=
volumes:
- jenkins_home:/var/lib/jenkins/
ports:
- "50000:50000"
- "8080:8080"
restart: unless-stopped
environment:
- NEXUS_PORT=8081
- SONAR_PORT=9000
- SONAR_DB_PORT=5432
networks:
ci:
ipv4_address: 172.25.0.10
nexus:
build:
context: "nexus"
ports:
- "8081:8081"
restart: unless-stopped
networks:
ci:
ipv4_address: 172.25.0.11
sonarqube:
build:
context: "sonar"
ports:
- "9000:9000"
links:
- db
environment:
- SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar
restart: unless-stopped
networks:
ci:
ipv4_address: 172.25.0.12
db:
image: postgres
volumes:
- data:/var/lib/postgresql
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
restart: unless-stopped
networks:
ci:
ipv4_address: 172.25.0.13
prom:
build:
context: "prometheus"
ports:
- "9090:9090"
restart: unless-stopped
networks:
ci:
ipv4_address: 172.25.0.14
node-exporter:
image: prom/node-exporter
ports:
- "9100:9100"
networks:
ci:
ipv4_address: 172.25.0.15
grafana:
image: grafana/grafana
ports:
- "3000:3000"
networks:
ci:
ipv4_address: 172.25.0.16
networks:
ci:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.25.0.0/16