homelab-nomad/services/ytdl.tf

36 lines
713 B
Terraform
Raw Normal View History

2024-06-13 23:23:55 +00:00
module "ytdl-web" {
source = "./service"
name = "ytdl-web"
2024-06-27 16:36:57 +00:00
image = "iamthefij/ytdl-web:0.1.4"
2024-06-13 23:23:55 +00:00
args = ["poetry", "run", "python", "-m", "ytdl_web.web", "--downloader"]
ingress = true
service_port = 5000
use_wesher = var.use_wesher
# service_check = null
2024-06-26 20:32:54 +00:00
user = "1001:100"
2024-06-13 23:23:55 +00:00
env = {
QUEUE_DIR = "/data/queue"
OUTPUT_TMPL = "/media/RomeTube/%(uploader)s%(channel)s/%(title)s.%(ext)s"
}
2024-06-26 20:32:54 +00:00
resources = {
cpu = 50
memory = 150
}
2024-06-13 23:23:55 +00:00
host_volumes = [
{
name = "ytdl-web"
dest = "/data"
read_only = false
},
{
name = "media-write"
dest = "/media"
read_only = false
},
]
}