-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.57 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
service-a:
build:
context: ./serviceA
dockerfile: Dockerfile
container_name: service-a
ports:
- "8080:8080"
depends_on:
- service-b
- otel-collector
- zipkin
environment:
- SERVICE_B_URL=http://service-b:8080
- OTEL_SERVICE_NAME=service-a
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
networks:
- zipcode-temperature-tracing
service-b:
build:
context: ./serviceB
dockerfile: Dockerfile
container_name: service-b
ports:
- "8081:8080"
depends_on:
- otel-collector
- zipkin
environment:
- API_KEY=${WEATHER_API_KEY}
- OTEL_SERVICE_NAME=service-b
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
networks:
- zipcode-temperature-tracing
otel-collector:
image: otel/opentelemetry-collector:latest
command: [ "--config=/etc/otel-collector-config.yaml" ]
volumes:
- ./config/otel/config.yaml:/etc/otel-collector-config.yaml:ro
ports:
- "4318:4318"
- "4317:4317"
networks:
- zipcode-temperature-tracing
zipkin:
image: openzipkin/zipkin
ports:
- "9411:9411"
depends_on:
- otel-collector
networks:
- zipcode-temperature-tracing
networks:
zipcode-temperature-tracing:
driver: bridge