-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
80 lines (75 loc) · 2.19 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
version: "3.7"
services:
server:
build: .
container_name: thoth
image: thoth
ports:
- "5555:5555"
- "8081:8081"
environment:
OTEL_SERVICE_NAME: thoth
OTEL_EXPORTER_JAEGER_ENDPOINT: http://tempo:14268/api/traces
logging:
driver: loki
options:
loki-url: 'http://localhost:3101/loki/api/v1/push'
tempo:
image: grafana/tempo:1.0.1
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./etc/tempo.yaml:/etc/tempo.yaml
- ./data/tempo-data:/tmp/tempo
ports:
- "14268" # jaeger ingest, Jaeger - Thrift HTTP
- "14250" # Jaeger - GRPC
- "55680" # OpenTelemetry
- "3100" # tempo
- "6831/udp" # Jaeger - Thrift Compact
- "6832/udp" # Jaeger - Thrift Binary
logging:
driver: loki
options:
loki-url: 'http://localhost:3101/loki/api/v1/push'
loki:
image: grafana/loki:2.2.1
command: [ "-config.file=/etc/loki/local-config.yaml" ]
ports:
- "3101:3100" # loki needs to be exposed so it receives logs
environment:
- JAEGER_AGENT_HOST=tempo
- JAEGER_ENDPOINT=http://tempo:14268/api/traces # send traces to Tempo
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
volumes:
- ./etc/loki.yaml:/etc/loki/loki.yaml
- ./data/loki-data:/tmp/loki
logging:
driver: loki
options:
loki-url: 'http://localhost:3101/loki/api/v1/push'
prometheus:
image: prom/prometheus:latest
command: [ "--config.file=/etc/prometheus.yaml" ]
volumes:
- ./etc/prometheus.yaml:/etc/prometheus.yaml
ports:
- "9090:9090"
logging:
driver: loki
options:
loki-url: 'http://localhost:3101/loki/api/v1/push'
grafana:
image: grafana/grafana:8.1.0-ubuntu
volumes:
- ./etc/grafana.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"
logging:
driver: loki
options:
loki-url: 'http://localhost:3101/loki/api/v1/push'