-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
68 lines (63 loc) · 1.45 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
version: '3.1'
networks:
net1:
volumes:
prometheus_data: {}
grafana_data: {}
services:
speedtest-exporter:
image: krausm/speedtest-exporter:0.1.0
ports:
- 9104:9104
networks:
- net1
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
prometheus:
image: prom/prometheus:v2.3.2
volumes:
- ./prometheus:/etc/prometheus
- prometheus_data:/prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention=20d
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
- --web.enable-lifecycle
ports:
- 9090:9090
networks:
- net1
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
grafana:
image: grafana/grafana:5.2.3
ports:
- 3000:3000
volumes:
- ./grafana/provisioning:/provisioning
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_PATHS_PROVISIONING=/provisioning
networks:
- net1
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure