job "crowdsec-agent" { datacenters = ["homelab", "hetzner"] type = "system" meta { forcedeploy = "2" } vault { policies = ["access-tables"] } group "crowdsec-agent" { network { mode = "host" port "metric" { to = 6060 } } task "crowdsec-agent" { service { name = "crowdsec-metrics" port = "metric" tags = [ ] } driver = "docker" config { image = "crowdsecurity/crowdsec" ports = ["metric"] volumes = [ "/var/run/docker.sock:/var/run/docker.sock", "/var/log:/var/log", "local/acquis.yaml:/etc/crowdsec/acquis.yaml" ] } env { COLLECTIONS = "crowdsecurity/traefik crowdsecurity/home-assistant LePresidente/gitea" DISABLE_LOCAL_API = "true" } template { data = <