-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (90 loc) · 1.64 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3.9'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
command:
[
"uvicorn",
"--host",
"0.0.0.0",
"--port",
"80",
"app.main:app",
"--reload",
]
networks:
- app-net
depends_on:
- redis
redis:
image: redis:6.2-alpine
restart: always
expose:
- 6379
ports:
- "6379:6379"
command: redis-server --save 10 1 --loglevel warning
volumes:
- cache:/data
networks:
- app-net
jaeger:
image: jaegertracing/all-in-one:latest
restart: on-failure
ports:
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 4317:4317
- 4318:4318
- 14250:14250
- 14268:14268
- 14269:14269
- 9411:9411
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
- COLLECTOR_OTLP_ENABLED=true
networks:
- app-net
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./etc/prometheus:/workspace
command:
- --config.file=/workspace/prometheus.yml
- --enable-feature=exemplar-storage
networks:
- app-net
loki:
image: grafana/loki:latest
ports:
- "3100:3100"
networks:
- app-net
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
volumes:
- ./etc/grafana:/var/lib/grafana
networks:
- app-net
volumes:
cache:
driver: local
grafana_data:
driver: local
driver_opts:
o: bind
type: none
device: ./etc/grafana
networks:
app-net: