Adds ombi, sonarr, daapd
This commit is contained in:
parent
acd9560025
commit
bad8b86aa1
|
@ -101,5 +101,6 @@ sans = [
|
|||
"tatooine.bb8.fun",
|
||||
"traefik.bb8.fun",
|
||||
"transmission.bb8.fun",
|
||||
# "transmission.in.bb8.fun",
|
||||
"wiki.bb8.fun"
|
||||
]
|
||||
|
|
5
main.tf
5
main.tf
|
@ -32,6 +32,11 @@ module "radicale" {
|
|||
domain = "radicale.bb8.fun"
|
||||
}
|
||||
|
||||
module "media" {
|
||||
source = "media"
|
||||
domain = "bb8.fun"
|
||||
}
|
||||
|
||||
module "monitoring" {
|
||||
source = "monitoring"
|
||||
gf-security-admin-password = "${var.gf-security-admin-password}"
|
||||
|
|
|
@ -0,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",
|
||||
]
|
||||
}
|
|
@ -0,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"]
|
||||
}
|
|
@ -0,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",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
variable "domain" {
|
||||
type = "string"
|
||||
}
|
Loading…
Reference in New Issue