--- services: backend-otelcol: image: otel/opentelemetry-collector-contrib command: - --config=/etc/otelcol/config.yaml volumes: - ./docker/otelcol/config.yaml:/etc/otelcol/config.yaml backend: build: context: . env_file: ./server/.env ports: - 8081:8080 restart: unless-stopped depends_on: - backend-otelcol client-otelcol: image: otel/opentelemetry-collector-contrib command: - --config=/etc/otelcol/config.yaml ports: - 4317:4317 - 4318:4318 volumes: - ./docker/otelcol/config.yaml:/etc/otelcol/config.yaml