# should define only the domain for existing nomads... job "nomad" { type = "service" group "nomad" { count = 5 constraint { operator = "distinct_hosts" value = "true" } network { port "http" { to = 4646 } } service { name = "nomad" tags = [ "traefik.enable=true", "traefik.http.routers.traefik.rule=Host(`nomad.service.consul`)", ] } } }