Add new ytdl and bump memory

Should eventually drop one
This commit is contained in:
IamTheFij 2025-02-24 09:56:16 -08:00
parent 480fcf144c
commit 3a90b097c8
2 changed files with 32 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module "ytdl-web" {
resources = { resources = {
cpu = 50 cpu = 50
memory = 150 memory = 1000
} }
host_volumes = [ host_volumes = [

31
services/ytptube.tf Normal file
View File

@ -0,0 +1,31 @@
module "ytptube" {
source = "./service"
name = "ytptube"
image = "ghcr.io/arabcoders/ytptube"
ingress = true
service_port = 8081
use_wesher = var.use_wesher
# service_check = null
user = "1001:100"
env = {
QUEUE_DIR = "/data/queue"
YTP_DOWNLOAD_PATH = "/media/Downloads"
YTP_TEMP_PATH = "/media/Downloads/tmp"
YTP_CONFIG_PATH = "/media/Downloads/ytp-config"
}
resources = {
cpu = 100
memory = 1000
}
host_volumes = [
{
name = "media-write"
dest = "/media"
read_only = false
},
]
}