diff --git a/nomad/service.nomad b/nomad/service.nomad index 4759217..641670f 100644 --- a/nomad/service.nomad +++ b/nomad/service.nomad @@ -78,6 +78,7 @@ job "[[.name]]" { } [[ end ]] + [[ if not (eq .healthcheck "") -]] check { type = "http" path = "[[ or .healthcheck "/" ]]" @@ -85,6 +86,7 @@ job "[[.name]]" { interval = "10s" timeout = "10s" } + [[ end -]] tags = [ [[ if default false .ingress -]]