sickrage is cool

This commit is contained in:
Nemo 2017-11-11 02:16:29 +05:30
parent 00acb18f06
commit bb423ba5d1
3 changed files with 45 additions and 4 deletions

View File

@ -24,4 +24,8 @@ data "docker_registry_image" "traefik" {
data "docker_registry_image" "gitea" { data "docker_registry_image" "gitea" {
name = "gitea/gitea:latest" name = "gitea/gitea:latest"
}
data "docker_registry_image" "sickrage" {
name = "linuxserver/sickrage:latest"
} }

View File

@ -31,4 +31,9 @@ resource "docker_image" "traefik" {
resource "docker_image" "gitea" { resource "docker_image" "gitea" {
name = "${data.docker_registry_image.gitea.name}" name = "${data.docker_registry_image.gitea.name}"
pull_triggers = ["${data.docker_registry_image.gitea.sha256_digest}"] pull_triggers = ["${data.docker_registry_image.gitea.sha256_digest}"]
}
resource "docker_image" "sickrage" {
name = "${data.docker_registry_image.sickrage.name}"
pull_triggers = ["${data.docker_registry_image.sickrage.sha256_digest}"]
} }

View File

@ -35,7 +35,7 @@ resource docker_container "transmission" {
"TZ=Asia/Kolkata", "TZ=Asia/Kolkata",
] ]
memory = 512 memory = 256
restart = "unless-stopped" restart = "unless-stopped"
destroy_grace_seconds = 10 destroy_grace_seconds = 10
must_run = true must_run = true
@ -119,7 +119,7 @@ resource "docker_container" "emby" {
"traefik.enable" = "true" "traefik.enable" = "true"
} }
memory = 1024 memory = 2048
restart = "unless-stopped" restart = "unless-stopped"
destroy_grace_seconds = 10 destroy_grace_seconds = 10
must_run = true must_run = true
@ -158,7 +158,7 @@ resource "docker_container" "flexget" {
"traefik.enable" = "true" "traefik.enable" = "true"
} }
memory = 128 memory = 256
restart = "unless-stopped" restart = "unless-stopped"
destroy_grace_seconds = 10 destroy_grace_seconds = 10
must_run = true must_run = true
@ -197,7 +197,7 @@ resource "docker_container" "couchpotato" {
"traefik.enable" = "true" "traefik.enable" = "true"
} }
memory = 128 memory = 256
restart = "unless-stopped" restart = "unless-stopped"
destroy_grace_seconds = 10 destroy_grace_seconds = 10
must_run = true must_run = true
@ -248,3 +248,35 @@ EOF
destroy_grace_seconds = 10 destroy_grace_seconds = 10
must_run = true must_run = true
} }
resource "docker_container" "sickrage" {
name = "sickrage"
image = "${docker_image.sickrage.latest}"
volumes {
host_path = "/mnt/xwing/config/sickrage"
container_path = "/config"
}
volumes {
host_path = "/mnt/xwing/media/DL"
container_path = "/downloads"
}
volumes {
host_path = "/mnt/xwing/media/TV"
container_path = "/tv"
}
labels {
"traefik.port" = 8081
"traefik.enable" = "true"
}
env = [
"PGID=1003",
"PUID=1000",
"TZ=Asia/Kolkata",
]
}