Adds ombi, sonarr, daapd
Diff
main.tf | 5 +++++
media/daapd.tf | 34 ++++++++++++++++++++++++++++++++++
media/ombi.tf | 40 ++++++++++++++++++++++++++++++++++++++++
media/sonarr.tf | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
media/variables.tf | 3 +++
docker/conf/traefik.toml | 1 +
6 files changed, 134 insertions(+)
@@ -32,6 +32,11 @@
domain = "radicale.bb8.fun"
}
module "media" {
source = "media"
domain = "bb8.fun"
}
module "monitoring" {
source = "monitoring"
gf-security-admin-password = "${var.gf-security-admin-password}"
@@ -1,0 +1,34 @@
data "docker_registry_image" "daapd" {
name = "linuxserver/daapd:latest"
}
resource "docker_image" "daapd" {
name = "${data.docker_registry_image.daapd.name}"
pull_triggers = ["${data.docker_registry_image.daapd.sha256_digest}"]
}
resource docker_container "daapd" {
name = "daapd"
image = "${docker_image.daapd.latest}"
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
network_mode = "host"
volumes {
host_path = "/mnt/xwing/config/daapd"
container_path = "/config"
}
volumes {
host_path = "/mnt/xwing/media/Music"
container_path = "/music"
}
env = [
"PUID=1004",
"PGID=1003",
"TZ=Asia/Kolkata",
]
}
@@ -1,0 +1,40 @@
data "docker_registry_image" "ombi" {
name = "linuxserver/ombi:latest"
}
resource "docker_image" "ombi" {
name = "${data.docker_registry_image.ombi.name}"
pull_triggers = ["${data.docker_registry_image.ombi.sha256_digest}"]
}
resource docker_container "ombi" {
name = "ombi"
image = "${docker_image.ombi.latest}"
labels {
"traefik.port" = 3579
"traefik.enable" = "true"
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
"traefik.frontend.headers.STSSeconds" = "2592000"
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
"traefik.frontend.headers.contentTypeNosniff" = "true"
"traefik.frontend.headers.browserXSSFilter" = "true"
"traefik.frontend.passHostHeader" = "true"
"traefik.frontend.rule" = "Host:rey.${var.domain}"
}
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
volumes {
host_path = "/mnt/xwing/config/ombi"
container_path = "/config"
}
env = [
"TZ=Asia/Kolkata",
]
links = ["emby"]
}
@@ -1,0 +1,51 @@
data "docker_registry_image" "sonarr" {
name = "linuxserver/sonarr:latest"
}
resource "docker_image" "sonarr" {
name = "${data.docker_registry_image.sonarr.name}"
pull_triggers = ["${data.docker_registry_image.sonarr.sha256_digest}"]
}
resource docker_container "sonarr" {
name = "sonarr"
image = "${docker_image.sonarr.latest}"
labels {
"traefik.port" = 8989
"traefik.enable" = "true"
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
"traefik.frontend.headers.STSSeconds" = "2592000"
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
"traefik.frontend.headers.contentTypeNosniff" = "true"
"traefik.frontend.headers.browserXSSFilter" = "true"
"traefik.frontend.passHostHeader" = "true"
"traefik.frontend.rule" = "Host:luke.${var.domain}"
}
memory = 512
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
volumes {
host_path = "/mnt/xwing/config/sonarr"
container_path = "/config"
}
volumes {
host_path = "/mnt/xwing/media/DL"
container_path = "/downloads"
}
volumes {
host_path = "/mnt/xwing/media/TV"
container_path = "/tv"
}
env = [
"PUID=1004",
"PGID=1003",
"TZ=Asia/Kolkata",
]
}
@@ -1,0 +1,3 @@
variable "domain" {
type = "string"
}
@@ -101,5 +101,6 @@
"tatooine.bb8.fun",
"traefik.bb8.fun",
"transmission.bb8.fun",
"wiki.bb8.fun"
]