From 54d298dbcf00599c55c2ad32563a57d300963be3 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 30 Aug 2023 20:54:47 +0200 Subject: [PATCH] change jellyfin-vue icon --- nomad-job/jellyfin.nomad | 44 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/nomad-job/jellyfin.nomad b/nomad-job/jellyfin.nomad index 0403347..052bda5 100644 --- a/nomad-job/jellyfin.nomad +++ b/nomad-job/jellyfin.nomad @@ -1,16 +1,56 @@ - job "jellyfin" { datacenters = ["homelab"] priority = 80 type = "service" meta { - forcedeploy = "0" + forcedeploy = "1" } constraint { attribute = "${attr.cpu.arch}" value = "amd64" } + group jellyfin-vue{ + network { + mode = "host" + port "http" { + to = 80 + } + } + task "jellyfin-vue"{ + driver = "docker" + service { + name = "jellyfin-vue" + port = "http" + tags = [ + "homer.enable=true", + "homer.name=${NOMAD_TASK_NAME}", + "homer.service=Application", + "homer.target=_blank", + "homer.logo=https://${NOMAD_TASK_NAME}.ducamps.win/icon.png", + "homer.url=https://${NOMAD_TASK_NAME}.ducamps.win", + "traefik.enable=true", + "traefik.http.routers.${NOMAD_TASK_NAME}.rule=Host(`${NOMAD_TASK_NAME}.ducamps.win`)", + "traefik.http.routers.${NOMAD_TASK_NAME}.tls.domains[0].sans=${NOMAD_TASK_NAME}.ducamps.win", + "traefik.http.routers.${NOMAD_TASK_NAME}.tls.certresolver=myresolver", + ] + } + config { + image = "ghcr.io/jellyfin/jellyfin-vue:unstable" + ports = ["http"] + } + env { + DEFAULT_SERVERS = "${NOMAD_TASK_NAME}.ducamps.win" + } + + resources { + + memory = 50 + cpu = 100 + } + + } + } group "jellyfin" { network { mode = "host"