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",
2023-11-05 18:08:17 +00:00
"homer.url=https://www.ducamps.eu/${NOMAD_JOB_NAME}",
2022-05-23 19:44:34 +00:00
2022-10-29 08:40:01 +00:00
"traefik.enable=true",
2023-11-05 18:08:17 +00:00
"traefik.http.routers.${NOMAD_JOB_NAME}.rule=Host(`www.ducamps.eu`)&&PathPrefix(`/chainetv`)",
"traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=www.ducamps.eu",
2022-10-29 08:40:01 +00:00
"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 {
2024-03-17 17:58:24 +00:00
image = "docker.service.consul:5000/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
}
}
}