homelab-nomad/services/jellyfin.tf
2024-12-17 16:36:49 -08:00

54 lines
932 B
HCL

module "jellyfin" {
source = "./service"
name = "jellyfin"
image = "lscr.io/linuxserver/jellyfin:10.10.3"
ingress = true
service_port = 8096
use_wesher = var.use_wesher
ports = [
{
name = "discovery"
static = 7359,
task_config = true,
},
{
name = "dnla",
static = 1900,
task_config = true,
},
]
env = {
PGID = 100
PUID = 1001
TZ = "America/Los_Angeles"
JELLYFIN_PublishedServerUrl = "https://jellyfin.thefij.rocks"
}
host_volumes = [
{
name = "jellyfin-config"
dest = "/config"
read_only = false
},
{
name = "media-read"
dest = "/media"
read_only = true
},
{
name = "media-overflow-read"
dest = "/media-overflow"
read_only = true
},
]
resources = {
cpu = 500
memory = 1200
}
}