job "syslogng" { datacenters = ["dc1"] type = "service" group "promtail" { count = 1 network { mode = "bridge" port "main" { to = 1514 } port "metrics" { to = 9080 } } service { name = "syslogng-promtail" provider = "nomad" port = "main" } task "promtail" { driver = "docker" config { image = "grafana/promtail:3.3.0" ports = ["main", "metrics"] args = ["--config.file=/etc/promtail/promtail.yml"] mount { type = "bind" target = "/etc/promtail/promtail.yml" source = "local/promtail.yml" } } template { data = <