job "crowdsec-api" { datacenters = ["homelab"] type = "service" meta { forcedeploy = "-1" } vault { policies = ["access-tables"] } group "crowdsec-api" { network { mode = "host" port "http" { static = 8898 to = 8080 } port "metric" { to = 6060 } } task "crowdsec-api" { service { name = "crowdsec-metrics" port = "metric" tags = [ ] } driver = "docker" service { name = "crowdsec-api" port = "http" tags = [ ] } config { image = "crowdsecurity/crowdsec" ports = ["http", "metric"] volumes = [ "/mnt/diskstation/nomad/crowdsec/db:/var/lib/crowdsec/data", "/mnt/diskstation/nomad/crowdsec/data:/etc/crowdsec_data", ] } template { data = <