-
Notifications
You must be signed in to change notification settings - Fork 543
/
Copy pathdocker-compose.yaml
51 lines (48 loc) · 1.73 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
version: '2.4'
services:
# Description: Jaeger all-in-one instance
# (https://www.jaegertracing.io/docs/1.17/getting-started/#all-in-one) for distributed tracing.
#
# Disk: none
# Ports exposed to other Sourcegraph services: 5778/TCP 6831/UDP 6832/UDP 14250/TCP 4317/UDP 4321/UDP
# Ports exposed to the public internet: none
# Ports exposed to site admins only: 16686/HTTP
#
jaeger:
container_name: jaeger
image: 'us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal/jaeger-all-in-one:6.1.2889@sha256:e0f8e8aa67f6a664944e58c2b728ef737e1daa72bd9c4866113153fe19b73b11'
cpus: 0.5
mem_limit: '512m'
ports:
# Query port
- '0.0.0.0:16686:16686'
# Collector port
- '0.0.0.0:14250:14250'
- '0.0.0.0:4317:4317' # gRPC port
- '0.0.0.0:4321:4321' # HTTP port
# Agent ports
- '0.0.0.0:5778:5778'
- '0.0.0.0:6831:6831'
- '0.0.0.0:6832:6832'
networks:
- sourcegraph
restart: always
command: ['--memory.max-traces=20000', "--sampling.strategies-file=/etc/jaeger/sampling_strategies.json", "--collector.otlp.enabled" ]
environment:
- 'SAMPLING_STRATEGIES_FILE=/etc/jaeger/sampling_strategies.json'
- 'COLLECTOR_OTLP_ENABLED=true'
- 'JAEGER_OTLP_GRPC_PORT=4317'
- 'JAEGER_OTLP_HTTP_PORT=4321'
# Configure collector to send traces to Jaeger
otel-collector:
environment:
- JAEGER_HOST=jaeger
- JAEGER_OTLP_GRPC_PORT=4317
command: ['--config', '/etc/otel-collector/configs/jaeger.yaml']
# Let frontend proxy to Jaeger interface
sourcegraph-frontend-0:
environment:
- 'JAEGER_SERVER_URL=http://jaeger:16686'
sourcegraph-frontend-internal:
environment:
- 'JAEGER_SERVER_URL=http://jaeger:16686'