-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
114 lines (106 loc) · 2.42 KB
/
docker-compose.yml
File metadata and controls
114 lines (106 loc) · 2.42 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
services:
## OTEL Collector
otel-collector:
image: otel/opentelemetry-collector-contrib:0.91.0
command: ["--config=/etc/otel-config.yaml"]
volumes:
- ./otel-config.yaml:/etc/otel-config.yaml
ports:
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "8888:8888" # Collector metrics
- "8889:8889" # Prometheus exporter endpoint
networks:
- nw
depends_on:
- jaeger
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8888/metrics"]
interval: 10s
timeout: 5s
retries: 10
## Traces
jaeger:
image: jaegertracing/all-in-one:1.54
container_name: jaeger
ports:
- "16686:16686" # UI
networks:
- nw
## Logs (Seq)
seq:
image: datalust/seq:latest
container_name: seq
environment:
- ACCEPT_EULA=Y
- SEQ_FIRSTRUN_NOAUTHENTICATION=true
ports:
- "5341:80"
networks:
- nw
## Metrics
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
restart: unless-stopped
networks:
- nw
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3001:3000"
volumes:
- grafana-storage:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
restart: unless-stopped
networks:
- nw
## Backend API
backend:
build:
context: .
dockerfile: Observability_WebApi_Blazor.Backend/Dockerfile
container_name: backend
environment:
- ASPNETCORE_URLS=http://+:8080
- Seq__Url=http://seq:80
- Jaeger__OtlpEndpoint=http://otel-collector:4317
ports:
- "5107:8080"
networks:
- nw
depends_on:
- otel-collector
- seq
## Blazor
web:
build:
context: .
dockerfile: Observability_WebAPI_Blazor/Observability_WebAPI_Blazor/Dockerfile
container_name: web
environment:
- ASPNETCORE_URLS=http://+:8080
- Seq__Url=http://seq:80
- BackendUrl=http://backend:8080
- OpenTelemetry__Tracing__Exporter__Otlp__Endpoint=http://otel-collector:4317
ports:
- "5075:8080"
networks:
- nw
depends_on:
- backend
- otel-collector
- seq
volumes:
grafana-storage:
driver: local
networks:
nw:
driver: bridge