job "promtail" { datacenters = ["homelab","hetzner"] type = "system" meta { forcedeploy = "0" } group "promtail"{ network { mode = "host" port "http" { static = 3200 } } task "promtail" { driver = "docker" service { name = "promtail" port = "http" check { name = "Promtail HTTP" type = "http" path = "/targets" interval = "5s" timeout = "2s" check_restart { limit = 2 grace = "60s" ignore_warnings = false } } } config { image = "grafana/promtail" ports = ["http"] args = [ "-config.file=/local/promtail.yml", "-server.http-listen-port=${NOMAD_PORT_http}", ] volumes = [ "/mnt/diskstation/nomad/promtail:/data", "/var/lib/nomad/:/nomad/" ] } env { HOSTNAME = "${attr.unique.hostname}" } template { data = <