diff --git a/crowdsec-agent.nomad b/crowdsec-agent.nomad new file mode 100644 index 0000000..4256208 --- /dev/null +++ b/crowdsec-agent.nomad @@ -0,0 +1,58 @@ + +job "crowdsec-agent" { + datacenters = ["homelab","hetzner"] + type = "system" + meta { + forcedeploy = "2" + } + vault{ + policies= ["access-tables"] + + } + + group "crowdsec-agent"{ + task "crowdsec-agent" { + driver = "docker" + config { + image = "crowdsecurity/crowdsec" + volumes = [ + "/var/run/docker.sock:/var/run/docker.sock", + "/var/log:/var/log", + "local/acquis.yaml:/etc/crowdsec/acquis.yaml" + ] + + } + env { + COLLECTIONS= "crowdsecurity/traefik" + DISABLE_LOCAL_API= "true" + } + template { + data = <