homelab/nomad-job/chainetv.nomad

52 lines
1.4 KiB
Plaintext
Raw Normal View History

2022-05-10 08:34:43 +00:00
job "chainetv" {
datacenters = ["homelab"]
2022-12-10 16:10:32 +00:00
priority = 30
2022-10-29 08:40:01 +00:00
type = "service"
2022-05-10 08:34:43 +00:00
meta {
2022-05-19 18:06:12 +00:00
forcedeploy = "2"
2022-05-10 08:34:43 +00:00
}
2022-10-29 08:40:01 +00:00
group "chainetv" {
2022-05-10 08:34:43 +00:00
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 = [
2022-10-29 08:40:01 +00:00
"homer.enable=true",
"homer.name=ChaineTV",
"homer.service=Application",
"homer.icon=fas fa-tv",
"homer.target=_blank",
"homer.url=https://www.ducamps.win/${NOMAD_JOB_NAME}",
2022-05-23 19:44:34 +00:00
2022-10-29 08:40:01 +00:00
"traefik.enable=true",
"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",
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver",
2023-10-07 16:40:40 +00:00
"traefik.http.routers.${NOMAD_JOB_NAME}.entrypoints=web,websecure",
2022-10-29 08:40:01 +00:00
"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",
2022-05-10 08:34:43 +00:00
]
}
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
}
}
}