forked from rafed/opentelemetry-python-grafana-mlt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
82 lines (73 loc) · 1.69 KB
/
docker-compose.yaml
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
77
78
79
80
81
82
version: "3.3"
services:
### DJANGO APPS ###
webapp:
build: ./webapp
command: python manage.py runserver 0.0.0.0:8000
environment:
- TRACING_HOST=jaeger
- TRACING_PORT=6831
volumes:
- ./webapp:/webapp
ports:
- "8000:8000"
depends_on:
- webapi
webapi:
build: ./webapi
command: python manage.py runserver 0.0.0.0:8001
environment:
- TRACING_HOST=jaeger
- TRACING_PORT=6831
volumes:
- ./webapi:/webapi
ports:
- "8001:8001"
### OBSERVABILITY APPS ###
grafana:
image: grafana/grafana:8.5.2
ports:
- "3000:3000"
volumes:
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/datasources/dashboard.yaml
depends_on:
# - tempo
- loki
- prometheus
- jaeger
# tempo:
# image: grafana/tempo:1.2.1
# ports:
# - "14268:14268"
# command:
# - -config.file=/etc/tempo/tempo.yaml
# volumes:
# - ./tempo/tempo.yaml:/etc/tempo/tempo.yaml
jaeger:
image: jaegertracing/all-in-one:1.32
ports:
- 16686:16686
- 6831:6831
loki:
image: grafana/loki:2.5.0
ports:
- "3100:3100"
depends_on:
- promtail
promtail:
image: grafana/promtail:2.5.0
volumes:
- ./promtail/promtail.yaml:/etc/promtail/promtail.yaml
- ./webapp/webapp.log:/var/log/webapp.log
- ./webapi/webapi.log:/var/log/webapi.log
command: --config.file=/etc/promtail/promtail.yaml
depends_on:
- webapp
- webapi
prometheus:
image: prom/prometheus:v2.35.0
ports:
- 9090:9090
volumes:
- ./prometheus:/etc/prometheus
command: --config.file=/etc/prometheus/prometheus.yaml