whoami test job config.

This commit is contained in:
2023-08-21 13:20:52 +01:00
parent b49d6781aa
commit fa7bfef0ec

30
services/whoami.hcl Normal file
View File

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