From fbe1457d1738feb598d1da3be6b3db2435de1a8c Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 17 Dec 2024 16:32:19 -0800 Subject: [PATCH] Add tdarr --- ansible_playbooks/setup-cluster.yml | 3 +++ services/tdarr.tf | 40 +++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 services/tdarr.tf diff --git a/ansible_playbooks/setup-cluster.yml b/ansible_playbooks/setup-cluster.yml index bc6469e..ee413df 100644 --- a/ansible_playbooks/setup-cluster.yml +++ b/ansible_playbooks/setup-cluster.yml @@ -131,6 +131,9 @@ - name: radarr-config path: /srv/volumes/nas-container/radarr read_only: false + - name: tdarr-config + path: /srv/volumes/nas-container/tdarr + read_only: false - name: bazarr-config path: /srv/volumes/nas-container/bazarr read_only: false diff --git a/services/tdarr.tf b/services/tdarr.tf new file mode 100644 index 0000000..15a5d6b --- /dev/null +++ b/services/tdarr.tf @@ -0,0 +1,40 @@ +module "tdarr" { + source = "./service" + + name = "tdarr" + image = "ghcr.io/haveagitgat/tdarr:latest" + image_pull_timeout = "10m" + + ingress = true + service_port = 8265 + + use_wesher = var.use_wesher + + env = { + PGID = 100 + PUID = 1001 + TZ = "America/Los_Angeles" + + internalNode = true + inContainer = true + } + + host_volumes = [ + { + name = "tdarr-config" + dest = "/app/configs" + read_only = false + }, + { + name = "media-write" + dest = "/media" + read_only = false + }, + { + name = "media-overflow-write" + dest = "/media-overflow" + read_only = false + }, + ] + +}