Add ytdl-web

This commit is contained in:
IamTheFij 2024-06-13 16:23:55 -07:00
parent 5547241d11
commit 6906623fda
2 changed files with 32 additions and 0 deletions

View File

@ -127,6 +127,9 @@
- name: gitea-data - name: gitea-data
path: /srv/volumes/nas-container/gitea path: /srv/volumes/nas-container/gitea
read_only: false read_only: false
- name: ytdl-web
path: /srv/volumes/nas-container/ytdl-web
read_only: false
- name: all-volumes - name: all-volumes
path: /srv/volumes path: /srv/volumes
owner: "root" owner: "root"

29
services/ytdl.tf Normal file
View File

@ -0,0 +1,29 @@
module "ytdl-web" {
source = "./service"
name = "ytdl-web"
image = "iamthefij/ytdl-web:0.1.1"
args = ["poetry", "run", "python", "-m", "ytdl_web.web", "--downloader"]
ingress = true
service_port = 5000
use_wesher = var.use_wesher
# service_check = null
env = {
QUEUE_DIR = "/data/queue"
OUTPUT_TMPL = "/media/RomeTube/%(uploader)s%(channel)s/%(title)s.%(ext)s"
}
host_volumes = [
{
name = "ytdl-web"
dest = "/data"
read_only = false
},
{
name = "media-write"
dest = "/media"
read_only = false
},
]
}