-
Notifications
You must be signed in to change notification settings - Fork 78
/
docker-compose.grafana.yml
76 lines (71 loc) · 1.6 KB
/
docker-compose.grafana.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
services:
fluent-bit:
build:
context: ./fluent-bit
dockerfile: Dockerfile
ports:
- "24224:24224"
- "24224:24224/udp"
environment:
- LOG_LEVEL=debug
- LOKI_URL=http://loki:3100/loki/api/v1/push
depends_on:
- loki
restart: unless-stopped
networks:
- backend
loki:
image: grafana/loki:2.5.0
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
volumes:
- loki_data:/loki
healthcheck:
test: ["CMD-SHELL", "wget -q --tries=1 -O- http://localhost:3100/ready"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- backend
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=master123
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
- GF_LOG_FILTERS=rendering:debug
depends_on:
- loki
- renderer
volumes:
- grafana_data:/var/lib/grafana
healthcheck:
test:
["CMD-SHELL", "wget -q --tries=1 -O- http://localhost:3000/api/health"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- backend
renderer:
image: grafana/grafana-image-renderer:latest
ports:
- "8081:8081"
environment:
- ENABLE_METRICS=true
restart: unless-stopped
networks:
- backend
networks:
backend:
name: backend
external: true
volumes:
loki_data:
grafana_data: