job "traefik-consul-lb" { datacenters = ["dc1"] type = "service" group "traefik" { count = 1 constraint { attribute = "${node.unique.name}" value = "hcp1" } update { min_healthy_time = "60s" healthy_deadline = "5m" progress_deadline = "10m" auto_revert = false } network { mode = "host" port "http" { static = 80 host_network = "tailscale0" } port "traefik" { static = 8080 host_network = "tailscale0" } } task "traefik" { driver = "exec" config { command = "/usr/local/bin/traefik" args = [ "--configfile=/local/traefik.yml" ] } template { data = <