-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
79 lines (79 loc) · 2.18 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
version: "2"
services:
grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- 3000:3000
volumes:
- "/var/lib/grafana:/var/lib/grafana"
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}
alertmanager:
image: prom/alertmanager:master
container_name: alertmanager
restart: always
command:
- "-config.file=/etc/alertmanager/alertmanager.yml"
ports:
- 9093:9093
volumes:
- "./config/alertmanager.yml:/etc/alertmanager/alertmanager.yml"
prometheus:
image: prom/prometheus:master
container_name: prometheus
depends_on:
- alertmanager
restart: always
command:
- "-config.file=/etc/prometheus/prometheus.yml"
- "-storage.local.path=/var/lib/prometheus/metrics"
- "-storage.local.retention=360h"
- "-alertmanager.url=http://172.17.0.1:9093"
- "-web.console.libraries=/usr/share/prometheus/console_libraries"
- "-web.console.templates=/usr/share/prometheus/consoles"
- "-web.enable-remote-shutdown=false"
ports:
- 9090:9090
volumes:
- "./config/prometheus.yml:/etc/prometheus/prometheus.yml"
- "/var/lib/prometheus/metrics:/var/lib/prometheus/metrics"
weather_exporter:
image: celliott/weather_exporter:latest
container_name: weather_exporter
ports:
- ${ENDPOINT_PORT}:${ENDPOINT_PORT}
environment:
- DARK_SKY_API_KEY=${DARK_SKY_API_KEY}
- SCRAPE_INTERVAL=${SCRAPE_INTERVAL}
- CITIES=${CITIES}
cadvisor:
image: google/cadvisor
container_name: cadvisor
restart: always
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
node_exporter:
image: prom/node-exporter
container_name: node_exporter
restart: always
ports:
- 9100:9100
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- -collector.procfs=/host/proc
- -collector.sysfs=/host/sys
collectd_exporter:
image: prom/collectd-exporter:master
container_name: collectd_exporter
ports:
- 9103:9103