1
0
mirror of https://github.com/docker/cli.git synced 2026-01-26 15:41:42 +03:00
Files
cli/contrib/otel/compose.yaml
Sebastiaan van Stijn 1ca0a7d57a move hack/otel to contrib
Aligning with where we put this in moby, and contrib is a slightly
more suitable location for this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-04-17 23:57:50 +02:00

40 lines
913 B
YAML

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: