forked from shadinua/demo-grafana-loki-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 1.86 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
version: "3"
services:
loki:
image: grafana/loki:master
command: -config.file=/etc/loki/local-config.yaml
networks:
- grafana-loki
- promtail-loki
promtail:
depends_on:
- loki
image: grafana/promtail:master
volumes:
- /var/log:/var/log
command: -config.file=/etc/promtail/docker-config.yaml
networks:
- promtail-loki
cadvisor:
image: google/cadvisor:v0.33.0
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
networks:
- prometheus-cadvisor
prometheus:
image: prom/prometheus:v2.7.1
ports:
- "9090:9090"
volumes:
- ./prometheus:/app.cfg
networks:
- world
- prometheus-cadvisor
- grafana-prometheus
command: >-
--config.file=/app.cfg/prometheus.yml
--storage.tsdb.path=/prometheus
--web.console.libraries=/usr/share/prometheus/console_libraries
--web.console.templates=/usr/share/prometheus/consoles
grafana:
depends_on:
- loki
image: grafana/grafana:6.0.0
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: test
GF_PATHS_PROVISIONING: '/app.cfg/provisioning'
volumes:
- ./grafana:/app.cfg
networks:
- world
- grafana-loki
- grafana-prometheus
networks:
world:
promtail-loki:
internal: true
grafana-loki:
internal: true
grafana-prometheus:
internal: true
prometheus-cadvisor:
internal: true