services: alloy: image: grafana/alloy:latest container_name: alloy restart: unless-stopped env_file: .env volumes: - ./config.alloy:/etc/alloy/config.alloy:ro - /var/run/docker.sock:/var/run/docker.sock:ro - /proc:/host/proc:ro - /sys:/host/sys:ro - /:/host/root:ro command: - run - /etc/alloy/config.alloy - --storage.path=/var/lib/alloy/data pid: host networks: - monitoring networks: monitoring: driver: bridge