From 1307864afc7984454a5d6bb6b914944e7ce42cc2 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 26 Jun 2024 13:32:54 -0700 Subject: [PATCH] Update ytdl to use a known system user --- services/ytdl.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/services/ytdl.tf b/services/ytdl.tf index a59927e..40d61a2 100644 --- a/services/ytdl.tf +++ b/services/ytdl.tf @@ -2,18 +2,24 @@ module "ytdl-web" { source = "./service" name = "ytdl-web" - image = "iamthefij/ytdl-web:0.1.1" + image = "iamthefij/ytdl-web:0.1.3" args = ["poetry", "run", "python", "-m", "ytdl_web.web", "--downloader"] ingress = true service_port = 5000 use_wesher = var.use_wesher # service_check = null + user = "1001:100" env = { QUEUE_DIR = "/data/queue" OUTPUT_TMPL = "/media/RomeTube/%(uploader)s%(channel)s/%(title)s.%(ext)s" } + resources = { + cpu = 50 + memory = 150 + } + host_volumes = [ { name = "ytdl-web"