diff --git a/_sys/nomad.hcl b/_sys/nomad.hcl new file mode 100644 index 0000000..9262670 --- /dev/null +++ b/_sys/nomad.hcl @@ -0,0 +1,24 @@ +# 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`)", + ] + } + } +}