-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (43 loc) · 969 Bytes
/
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
version: "3"
services:
zipkin:
image: openzipkin/zipkin:latest
restart: always
ports:
- "9411:9411"
otel_collector:
image: otel/opentelemetry-collector:latest
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
command:
--config=/etc/otel-collector-config.yaml
ports:
- "4318:4318"
cep_api:
container_name: cep_api
build:
context: .
environment:
- COLLECTOR_ENDPOINT=otel_collector:4318
- PORT=8080
- SERVICE_NAME=cep_api
- HOST_SERVICE_B=http://weather_api:8081
ports:
- "8080:8080"
depends_on:
- zipkin
- otel_collector
weather_api:
container_name: weather_api
build:
context: .
environment:
- COLLECTOR_ENDPOINT=otel_collector:4318
- PORT=8081
- SERVICE_NAME=weather_api
- WEATHER_API_KEY=
ports:
- "8081:8081"
depends_on:
- zipkin
- otel_collector