-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (73 loc) · 1.8 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
version: "3.8"
volumes:
prometheus-data: {}
grafana-data: {}
alertmanager-data: {}
influxdb-data: {}
jenkins-data: {}
cadvisor: {}
services:
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
restart: unless-stopped
volumes:
- "/:/host:ro,rslave"
ports:
- "9100:9100"
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
restart: unless-stopped
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/rules.yml:/etc/prometheus/rules.yml
- prometheus-data:/prometheus
command:
- "--web.enable-lifecycle"
- "--config.file=/etc/prometheus/prometheus.yml"
grafana:
image: grafana/grafana:8.5.5
container_name: grafana
ports:
- "3000:3000"
restart: unless-stopped
volumes:
- grafana-data:/var/lib/grafana
alertmanager:
image: quay.io/prometheus/alertmanager:latest
container_name: alertmanager
ports:
- "9093:9093"
restart: unless-stopped
volumes:
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml
- alertmanager-data:/data
influxdb:
image: influxdb:1.8.6-alpine
container_name: influxdb
ports:
- "8086:8086"
restart: unless-stopped
volumes:
- influxdb-data:/var/lib/influxdb
jenkins:
image: jenkins/jenkins:lts
container_name: jenkins
ports:
- "8080:8080"
restart: unless-stopped
volumes:
- jenkins-data:/var/jenkins_home
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
ports:
- 8081:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro