-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
139 lines (127 loc) · 2.76 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: '3.3'
volumes:
influxdb_data: {}
prometheus_data: {}
prometheus_federate_data: {}
grafana_data: {}
networks:
monitoring: {}
# logging: {}
services:
prometheus:
image: prom/prometheus:v2.1.0
ports:
- "9090:9090"
expose:
- 9090
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
restart: unless-stopped
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- '--storage.tsdb.path=/prometheus'
networks:
- monitoring
labels:
container_group: monitoring
depends_on:
- influxdb
prometheus_federate:
image: prom/prometheus:v2.1.0
ports:
- "9009:9090"
expose:
- "9009"
volumes:
- prometheus_federate_data:/prometheus
- ./prometheus_federate/:/etc/prometheus/
restart: unless-stopped
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- '--storage.tsdb.path=/prometheus'
networks:
- monitoring
labels:
container_group: monitoring
chronograf:
ports:
- '8888:8888'
image: chronograf:1.4.1.2
expose:
- '8888'
networks:
- monitoring
command:
- '--influxdb-url=http://influxdb:8086'
influxdb:
hostname: influxdb
container_name: influxdb
image: influxdb:1.4.3
expose:
- "8083"
- "8086"
ports:
- "8083:8083"
- "8086:8086"
volumes:
- influxdb_data:/var/lib/influxdb
restart: unless-stopped
environment:
INFLUXDB_ADMIN_ENABLED: 'true'
networks:
- monitoring
labels:
container_group: monitoring
grafana:
image: grafana/grafana
expose:
- "3000"
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
restart: always
labels:
labels: container_group
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: monitor
networks:
- monitoring
# alertmanager:
# image: prom/alertmanager
# expose:
# - 9093
# restart: always
# volumes:
# - ./alertmanager/:/etc/alertmanager/
# - ../storage/alertmanager/:/alertmanager
# command:
# - '-config.file=/etc/alertmanager/config.yml'
# - '-storage.path=/alertmanager'
# labels:
# container_group: monitoring
node-exporter:
image: prom/node-exporter
expose:
- 9100
restart: always
labels:
container_group: monitoring
networks:
- monitoring
cadvisor:
image: google/cadvisor
expose:
- 8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
restart: always
networks:
- monitoring
labels:
container_group: monitoring