diff --git a/crowdsec-agent.nomad b/crowdsec-agent.nomad index 4256208..6763526 100644 --- a/crowdsec-agent.nomad +++ b/crowdsec-agent.nomad @@ -11,10 +11,23 @@ job "crowdsec-agent" { } 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", @@ -23,7 +36,7 @@ job "crowdsec-agent" { } env { - COLLECTIONS= "crowdsecurity/traefik" + COLLECTIONS= "crowdsecurity/traefik crowdsecurity/home-assistant LePresidente/gitea" DISABLE_LOCAL_API= "true" } template { @@ -34,6 +47,20 @@ container_name_regexp: - traefik-* labels: type: traefik +--- +source: docker +container_name_regexp: + - hass-* +labels: + type: homeassistant +--- +source: docker +container_name_regexp: + - gitea-* +labels: + type: gitea + + EOH destination = "local/acquis.yaml"