services: alloy: restart: always image: grafana/alloy:latest ports: - "4317:4317" - "12345:12345" volumes: - ./config.alloy:/etc/alloy/config.alloy command: run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy environment: - GRAFANA_CLOUD_API_KEY=${GRAFANA_CLOUD_API_KEY}