30 lines
639 B
Terraform
30 lines
639 B
Terraform
|
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
|
||
|
},
|
||
|
]
|
||
|
}
|