services:
otel-collector:
image: ${OTEL_COLLECTOR_IMAGE:-registry.brefwiz.com/proxy-docker/otel/opentelemetry-collector-contrib:0.150.1}
command: ["--config", "/etc/otel/config.yaml", "--feature-gates=service.profilesSupport"]
user: "${OTEL_UID:-1000}:${OTEL_GID:-1000}"
ports:
- "4317:4317"
- "13133:13133"
depends_on:
pyroscope:
condition: service_started
volumes:
- ./collector-config.yaml:/etc/otel/config.yaml:ro
- ./collector-output:/var/lib/otel
healthcheck:
test: ["CMD", "/bin/sh", "-c", "cat /dev/null > /dev/tcp/127.0.0.1/4317"]
interval: 2s
timeout: 2s
retries: 30
start_period: 5s
pyroscope:
image: ${PYROSCOPE_IMAGE:-registry.brefwiz.com/proxy-docker/grafana/pyroscope:1.13.0}
ports:
- "4040:4040"