homelab-nomad/services/jellyfin.tf

54 lines
932 B
Terraform
Raw Normal View History

2024-11-22 05:05:40 +00:00
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
}
}