services: collector: image: otel/opentelemetry-collector-contrib:latest ports: - "4317:4317" # OTLP gRPC - "55681:55681" # OTLP HTTP - "8888:8888" # Prometheus metrics endpoint volumes: - ./config.yaml:/etc/otel/config.yaml command: ["--config", "/etc/otel/config.yaml"]