-
Notifications
You must be signed in to change notification settings - Fork 71
/
docker-compose.yaml
67 lines (63 loc) 路 1.78 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
services:
producer-api:
image: quick-start-grpc-stream-propagation-producer-api
platform: linux/amd64
build: ./producer-api
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 8080:8080
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: otel-collector:4317
OTEL_SERVICE_NAME: producer-api
PORT: 8080
depends_on:
otel-collector:
condition: service_started
consumer-worker:
image: quick-start-grpc-stream-propagation-consumer-worker
platform: linux/amd64
build: ./consumer-worker
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: otel-collector:4317
OTEL_SERVICE_NAME: consumer-worker
PRODUCER_API_ADDRESS: producer-api:8080
depends_on:
otel-collector:
condition: service_started
producer-api:
condition: service_started
# Cloud-based Managed Tracetest
tracetest-agent:
image: kubeshop/tracetest-agent:latest
environment:
# Find the Agent API Key here: https://docs.tracetest.io/configuration/agent
TRACETEST_API_KEY: ${TRACETEST_API_KEY}
TRACETEST_MODE: verbose
otel-collector:
image: otel/opentelemetry-collector-contrib:0.101.0
command:
- "--config"
- "/otel-local-config.yaml"
volumes:
- ./tracetest/collector.config.yaml:/otel-local-config.yaml
ports:
- 4317:4317
depends_on:
jaeger:
condition: service_started
jaeger:
image: jaegertracing/all-in-one:latest
restart: unless-stopped
ports:
- 16686:16686
- 16685:16685
environment:
- COLLECTOR_OTLP_ENABLED=true
healthcheck:
test: ["CMD", "wget", "--spider", "localhost:16686"]
interval: 1s
timeout: 3s
retries: 60