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", + ] + } + } + } +}