forked from grafana/tutorial-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (50 loc) · 931 Bytes
/
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
version: "3"
networks:
grafana:
volumes:
app_data: {}
services:
prometheus:
image: prom/prometheus:v2.21.0
volumes:
- ./prometheus/:/etc/prometheus/
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
ports:
- 9090:9090
networks:
- grafana
loki:
image: grafana/loki:1.6.1
ports:
- 3100:3100
command: -config.file=/etc/loki/local-config.yaml
networks:
- grafana
promtail:
image: grafana/promtail:1.6.1
volumes:
- app_data:/var/log
networks:
- grafana
grafana:
image: grafana/grafana:7.3.6
ports:
- 3000:3000
networks:
- grafana
app:
build: ./app
ports:
- 8081:80
volumes:
- app_data:/var/log
networks:
- grafana
db:
image: grafana/tns-db:latest
ports:
- 8082:80
networks:
- grafana