-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathcompose.yaml
39 lines (34 loc) · 913 Bytes
/
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
name: cli-otel
services:
prometheus:
image: prom/prometheus:latest
command:
- "--config.file=/etc/prometheus/prom.yaml"
ports:
# Publish the Prometheus frontend on localhost:9091
- 9091:9090
restart: always
volumes:
# Store Prometheus data in a volume:
- prom_data:/prometheus
# Mount the prom.yml config file
- ./prom.yaml:/etc/prometheus/prom.yaml
aspire-dashboard:
image: mcr.microsoft.com/dotnet/nightly/aspire-dashboard:8.0-preview
ports:
- 18888:18888
environment:
DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS: 'true'
otelcol:
image: otel/opentelemetry-collector:latest
restart: always
depends_on:
- prometheus
- aspire-dashboard
ports:
- 4317:4317
volumes:
# Mount the otelcol.yml config file
- ./otelcol.yaml:/etc/otelcol/config.yaml
volumes:
prom_data: