WIP: Add TubeSync

Syncing YouTube channels and playlists to Plex for RomeTube
This commit is contained in:
IamTheFij 2023-07-25 10:15:15 -07:00
parent be2fd9c327
commit cd74de45cc
2 changed files with 43 additions and 0 deletions

View File

@ -112,6 +112,9 @@
- name: nzbget-config - name: nzbget-config
path: /srv/volumes/nas-container/nzbget path: /srv/volumes/nas-container/nzbget
read_only: false read_only: false
- name: tubesync-config
path: /srv/volumes/nas-container/tubesync
read_only: false
- name: all-volumes - name: all-volumes
path: /srv/volumes path: /srv/volumes
owner: "root" owner: "root"

View File

@ -210,3 +210,43 @@ module "adminer" {
memory = 50 memory = 50
} }
} }
module "tubesync" {
source = "./service"
name = "tubesync"
image = "ghcr.io/meeb/tubesync:latest"
ingress = true
service_port = 4848
env = {
TZ = "America/Los_Angeles"
}
mysql_bootstrap = {
enabled = true
}
host_volumes = [
{
name = "tubesync-config"
dest = "/config"
read_only = false
},
]
templates = [
{
data = <<EOF
{{ with nomadVar "nomad/jobs/tubesync" -}}
DATABASE_CONNECTION=mysql://{{ .db_user }}:{{ .db_pass }}@127.0.0.1:3306/{{ .db_name }}
{{- end }}
EOF
dest_prefix = "$${NOMAD_SECRETS_DIR}"
dest = "env"
env = true
mount = false
},
]
}