-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
91 lines (84 loc) · 2.18 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "2"
services:
# Jaeger
jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "14268"
- "14250"
# Zipkin
zipkin-all-in-one:
image: openzipkin/zipkin:latest
ports:
- "9411:9411"
# Collector
otel-collector:
image: ${OTELCOL_IMG}
command:
[
"--config=/etc/otel-collector-config.yaml",
"${OTELCOL_ARGS}"
]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
# - "55679:55679" # zpages extension
depends_on:
- jaeger-all-in-one
- zipkin-all-in-one
prometheus:
container_name: prometheus
image: prom/prometheus:latest
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
locationsapi:
image: ${LOCATIONSAPI_IMG}
build:
dockerfile: ./LocationsApi/Dockerfile
context: .
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5218
ports:
- 5218:5218
depends_on:
- otel-collector
weathersapi:
image: ${WEATHERSAPI_IMG}
build:
dockerfile: ./WeatherForcastApi/Dockerfile
context: .
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5290
ports:
- 5290:5290
depends_on:
- otel-collector
gatewayapi:
image: ${GATEWAYAPI_IMG}
build:
dockerfile: ./GatewayApi/Dockerfile
context: .
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5208
- weathersapi_ENDPOINT=http://weathersapi:5290
- locationsapi_ENDPOINT=http://locationsapi:5218
ports:
- 5208:5208
depends_on:
- otel-collector
- locationsapi
- weathersapi