homelab/chainetv.nomad

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-05-10 08:34:43 +00:00
job "chainetv" {
datacenters = ["homelab"]
type = "service"
meta {
forcedeploy = "0"
}
group "chainetv"{
network {
mode = "host"
port "http" {
to = 5000
}
}
2022-05-12 09:36:51 +00:00
task "chainetv" {
2022-05-10 08:34:43 +00:00
driver = "docker"
service {
name = "chainetv"
port = "http"
tags = [
"traefik.enable=true",
2022-05-12 09:36:51 +00:00
"traefik.http.routers.${NOMAD_JOB_NAME}.rule=Host(`www.ducamps.win`)&&PathPrefix(`/chainetv`)",
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=www.ducamps.win",
2022-05-10 08:34:43 +00:00
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver",
"traefik.http.routers.${NOMAD_JOB_NAME}.middlewares=chainetv,chainetvStrip",
"traefik.http.middlewares.chainetv.headers.customrequestheaders.X-Script-Name=/chainetv",
"traefik.http.middlewares.chainetvStrip.stripprefix.prefixes=/chainetv",
]
}
config {
2022-05-10 09:24:26 +00:00
image = "ducampsv/chainetv:latest"
2022-05-10 08:34:43 +00:00
ports = ["http"]
}
2022-05-12 09:36:04 +00:00
resources {
memory = 200
}
2022-05-10 08:34:43 +00:00
}
}
}