From fa7bfef0eccdbea3ed7626f93f045e06e81816a6 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Mon, 21 Aug 2023 13:20:52 +0100 Subject: [PATCH] whoami test job config. --- services/whoami.hcl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 services/whoami.hcl diff --git a/services/whoami.hcl b/services/whoami.hcl new file mode 100644 index 0000000..e17d8e0 --- /dev/null +++ b/services/whoami.hcl @@ -0,0 +1,30 @@ +job "whoami" { + datacenters = ["alo"] + + group "who" { + network { + port "http" { } + } + + task "whoami" { + driver = "docker" + config { + image = "traefik/whoami" + ports = ["http"] + args = [ + "--port=${NOMAD_PORT_http}", + ] + } + service { + name = "whoami" + port = "http" + tags = [ + "traefik.enable=true", + "traefik.http.routers.whoami.rule=Host(`test.alo.land`)", + "traefik.http.routers.whoami.entryPoints=websecure", + "traefik.http.routers.whoami.middlewares=authentik@file", + ] + } + } + } +}