job "loki" { datacenters = ["alo"] type = "service" update { max_parallel = 1 health_check = "checks" min_healthy_time = "10s" healthy_deadline = "3m" progress_deadline = "5m" } group "loki" { count = 1 restart { attempts = 3 interval = "5m" delay = "25s" mode = "delay" } network { port "loki" { # static so that it can be hardcoded in the grafana data source static = 3100 } } task "loki" { driver = "docker" config { image = "grafana/loki:2.9.4" args = [ "-config.file", "local/loki/local-config.yaml", ] ports = ["loki"] volumes = ["/data/compute/appdata/loki:/loki"] } template { data = <