-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
59 lines (56 loc) · 1.31 KB
/
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
services:
loki:
image: grafana/loki:latest
restart: "no"
ports:
- "3100:3100"
volumes:
- ./loki/config/loki-config.yaml:/etc/loki/loki-config.yaml
- loki_data:/data/loki
command: -config.file=/etc/loki/loki-config.yaml
deploy:
resources:
limits:
memory: 500M
replicas: &logs ${LOGS_REPLICAS:-1}
labels:
- logging=promtail
promtail:
image: grafana/promtail:latest
restart: 'no'
volumes:
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- ./promtail/config/promtail-config.yaml:/etc/promtail/promtail-config.yaml
- /var/run/docker.sock:/var/run/docker.sock
command: -config.file=/etc/promtail/promtail-config.yaml
deploy:
resources:
limits:
memory: 100M
replicas: *logs
depends_on:
- loki
labels:
- logging=promtail
grafana:
image: grafana/grafana:latest
restart: 'no'
user: "0"
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/datasources:/etc/grafana/provisioning/datasources/
deploy:
resources:
limits:
memory: 100M
replicas: *logs
depends_on:
- loki
labels:
- logging=promtail
volumes:
kafka_data:
loki_data:
grafana_data: