whoami test job config.
This commit is contained in:
30
services/whoami.hcl
Normal file
30
services/whoami.hcl
Normal 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",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user