Add ytdl-web
This commit is contained in:
parent
5547241d11
commit
6906623fda
@ -127,6 +127,9 @@
|
||||
- name: gitea-data
|
||||
path: /srv/volumes/nas-container/gitea
|
||||
read_only: false
|
||||
- name: ytdl-web
|
||||
path: /srv/volumes/nas-container/ytdl-web
|
||||
read_only: false
|
||||
- name: all-volumes
|
||||
path: /srv/volumes
|
||||
owner: "root"
|
||||
|
29
services/ytdl.tf
Normal file
29
services/ytdl.tf
Normal 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
|
||||
},
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user