diff --git a/example/images/traefik/Dockerfile b/example/images/traefik/Dockerfile index 894fabd..e726adb 100644 --- a/example/images/traefik/Dockerfile +++ b/example/images/traefik/Dockerfile @@ -1,4 +1,4 @@ -FROM danielberteaud/alpine:24.3-1 +FROM danielberteaud/alpine:24.4-1 MAINTAINER Daniel Berteaud ARG VERSION=3.0.0-rc3 diff --git a/example/traefik.nomad.hcl b/example/traefik.nomad.hcl index e876872..3394d43 100644 --- a/example/traefik.nomad.hcl +++ b/example/traefik.nomad.hcl @@ -3,20 +3,27 @@ job "traefik" { datacenters = ["dc1"] region = "global" - priority = 70 - - - constraint { - operator = "distinct_hosts" - value = "true" - } - group "traefik" { + + count = 2 shutdown_delay = "6s" + + constraint { + operator = "distinct_hosts" + value = "true" + } + + + ephemeral_disk { + # Use minimal ephemeral disk + size = 101 + } + + network { mode = "bridge" port "http" { diff --git a/traefik.nomad.hcl b/traefik.nomad.hcl index 5d06278..9b89689 100644 --- a/traefik.nomad.hcl +++ b/traefik.nomad.hcl @@ -1,12 +1,10 @@ job "[[ .instance ]]" { -[[- $c:= merge .traefik . ]] - -[[ template "common/job_start" $c ]] +[[ template "common/job_start" . ]] group "traefik" { - count = [[ .traefik.count ]] - shutdown_delay = "6s" +[[ $c := merge .traefik . ]] +[[ template "common/group_start" $c ]] network { mode = "bridge"