job "jellyfin" { datacenters = ["homelab"] priority = 80 type = "service" meta { forcedeploy = "0" } constraint { attribute = "${attr.cpu.arch}" value = "amd64" } group "jellyfin" { network { mode = "host" port "http" { to = 8096 } } task "jellyfin" { driver = "docker" service { name = "jellyfin" port = "http" tags = [ "homer.enable=true", "homer.name=jellyfin", "homer.service=Application", "homer.target=_blank", "homer.logo=https://${NOMAD_JOB_NAME}.ducamps.win/web/assets/img/banner-light.png", "homer.url=https://${NOMAD_JOB_NAME}.ducamps.win", "traefik.enable=true", "traefik.http.routers.${NOMAD_JOB_NAME}.rule=Host(`${NOMAD_JOB_NAME}.ducamps.win`)", "traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=${NOMAD_JOB_NAME}.ducamps.win", "traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver", ] } config { image = "jellyfin/jellyfin" ports = ["http"] volumes = [ "/mnt/diskstation/nomad/jellyfin/config:/config", "/mnt/diskstation/nomad/jellyfin/cache:/cache", "/mnt/diskstation/media/:/media", "/mnt/diskstation/music/:/media2" ] devices = [ { host_path = "/dev/dri/renderD128" container_path = "/dev/dri/renderD128" }, { host_path = "/dev/dri/card0" container_path = "/dev/dri/card0" } ] } resources { memory = 2000 cpu = 3000 } } } }