-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
66 lines (66 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
version: "3"
services:
jaeger:
image: jaegertracing/all-in-one:latest@sha256:85a10441bd1271fff53d1d80e174567d41ab596c5e82f7034e20996c7b6f20d1
ports:
- "16686:16686"
zipkin:
image: openzipkin/zipkin:latest@sha256:1ae0572be3d26fd9ab3fd2da5e8feaa0ca0078dbc31e2ddfb881b1a56bc332b1
ports:
- "9411:9411"
otel-collector:
image: otel/opentelemetry-collector:latest@sha256:f6ac448b9de543830af942e1691e75fc082c709754bf9ac690e8c216cbb43a25
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
depends_on:
- jaeger
- zipkin
otel-agent:
image: otel/opentelemetry-collector:latest@sha256:f6ac448b9de543830af942e1691e75fc082c709754bf9ac690e8c216cbb43a25
command: ["--config=/etc/otel-agent-config.yaml"]
volumes:
- ./otel-agent-config.yaml:/etc/otel-agent-config.yaml
depends_on:
- otel-collector
client:
command: ["/app/client"]
build:
context: .
args:
CMD: client
environment:
OTEL_AGENT_URL: ${OTEL_AGENT_URL?}
SERVER_URL: ${SERVER_URL?}
depends_on:
- otel-agent
- server
server:
command: ["/app/server"]
build:
context: .
args:
CMD: server
environment:
OTEL_AGENT_URL: ${OTEL_AGENT_URL?}
REDIS_URL: ${REDIS_URL?}
ports:
- "8080:8080"
depends_on:
- otel-agent
- redis
- worker
worker:
command: ["/app/worker"]
build:
context: .
args:
CMD: worker
environment:
OTEL_AGENT_URL: ${OTEL_AGENT_URL?}
REDIS_URL: ${REDIS_URL?}
depends_on:
- otel-agent
- redis
redis:
image: redis:latest@sha256:365eddf64356169aa0cbfbeaf928eb80762de3cc364402e7653532bcec912973