add acquis and metric port
This commit is contained in:
parent
22c78302b3
commit
922bdb4b59
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user