-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdev.docker-compose.yaml
88 lines (86 loc) · 2.58 KB
/
dev.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
83
84
85
86
87
88
# docker-compose setup for development setup.
# Use quickstart.docker-compose.yaml if you just want to try out Kelemetry.
# Use the helm chart if you want to deploy in production.
services:
# ETCD cache storage, only required if etcd cache is used
etcd:
image: quay.io/coreos/etcd:v3.2
entrypoint: [etcd]
command:
- -name=main
- -advertise-client-urls=http://etcd:2379
- -listen-client-urls=http://0.0.0.0:2379
- -initial-advertise-peer-urls=http://etcd:2380
- -listen-peer-urls=http://0.0.0.0:2380
- -initial-cluster-state=new
- -initial-cluster=main=http://etcd:2380
- -initial-cluster-token=etcd-cluster-1
- -data-dir=/var/run/etcd/default.etcd
volumes:
- etcd:/var/run/etcd/
ports:
- 2379:2379
restart: always
deploy:
resources:
limits:
memory: 1G
# Web frontend for trace view.
jaeger-query:
image: jaegertracing/jaeger-query:1.65.0
environment:
SPAN_STORAGE_TYPE: grpc
GRPC_STORAGE_SERVER: host.docker.internal:17271 # run on host directly
ports:
- 0.0.0.0:16686:16686
restart: always
# OTLP collector that writes to Badger
jaeger-collector:
image: jaegertracing/jaeger-collector:1.65.0
environment:
COLLECTOR_OTLP_ENABLED: "true"
SPAN_STORAGE_TYPE: grpc
GRPC_STORAGE_SERVER: remote-badger:17271
ports:
- 0.0.0.0:4317:4317
restart: always
# Backend badger storage
# Feel free to override environment.SPAN_STORAGE_TYPE to other storages given the proper configuration.
remote-badger:
image: jaegertracing/jaeger-remote-storage:1.65.0
environment:
SPAN_STORAGE_TYPE: badger
BADGER_EPHEMERAL: "false"
BADGER_DIRECTORY_KEY: /mnt/badger/key
BADGER_DIRECTORY_VALUE: /mnt/badger/data
ports:
- 127.0.0.1:17272:17271
volumes:
- badger:/mnt/badger
restart: always
deploy:
resources:
limits:
memory: 1G
# Web frontend for raw trace database view.
jaeger-query-raw:
image: jaegertracing/jaeger-query:1.65.0
environment:
SPAN_STORAGE_TYPE: grpc
GRPC_STORAGE_SERVER: remote-badger:17271
ports:
- 0.0.0.0:26686:16686
restart: always
# Hack service to chown badger volume for 10001 (user of jaeger-remote-storage)
chown-badger-volume:
profiles:
- chown-badger-volume
image: jaegertracing/jaeger-remote-storage:1.65.0
user: root
entrypoint: /bin/ash
command: ["-c", "chown 10001:10001 /mnt/badger && sleep infinity"]
volumes:
- badger:/mnt/badger
volumes:
etcd: {}
badger: {}