add acquis and metric port

This commit is contained in:
vincent 2022-05-26 18:25:11 +02:00
parent 22c78302b3
commit 922bdb4b59

View File

@ -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"