-
Notifications
You must be signed in to change notification settings - Fork 572
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 1.3 KB
/
docker-compose.yaml
File metadata and controls
43 lines (40 loc) · 1.3 KB
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
version: '2.4'
services:
# Description: Jaeger all-in-one instance
# (https://www.jaegertracing.io/docs/2.16/getting-started/) for distributed tracing.
#
# Disk: none
# Ports exposed to other Sourcegraph services: 5778/TCP 4317/TCP 4318/TCP
# Ports exposed to the public internet: none
# Ports exposed to site admins only: 16686/HTTP
#
jaeger:
container_name: jaeger
image: 'index.docker.io/sourcegraph/jaeger-all-in-one:6.12.5040@sha256:6568f47c5d77995fe928a86cf099173a7319c320dbd764fcbb047dfd2675470e'
cpus: 0.5
mem_limit: '512m'
ports:
# Query port
- '0.0.0.0:16686:16686'
# OTLP ports
- '0.0.0.0:4317:4317' # gRPC
- '0.0.0.0:4318:4318' # HTTP
# Remote sampling
- '0.0.0.0:5778:5778'
networks:
- sourcegraph
restart: always
command: ['--config=/etc/jaeger/jaeger-config.yaml']
# 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'