services:
otel-collector:
image: otel/opentelemetry-collector-contrib:0.150.1
command:
user: "${OTEL_UID:-1000}:${OTEL_GID:-1000}"
ports:
- "4317:4317"
- "13133:13133"
volumes:
- ./collector-config.yaml:/etc/otel/config.yaml:ro
- ./collector-output:/var/lib/otel
healthcheck:
test:
interval: 2s
timeout: 2s
retries: 30
start_period: 5s