nebula/media/sonarr.tf

40 lines
719 B
Terraform
Raw Normal View History

2018-10-13 15:15:10 +00:00
module "sonarr-container" {
name = "sonarr"
source = "../modules/container"
image = "linuxserver/sonarr:latest"
web {
expose = true
port = 8989
host = "sonarr.${var.domain}"
2018-01-29 19:23:40 +00:00
}
2018-10-13 15:15:10 +00:00
resource {
2019-01-26 12:36:18 +00:00
memory = 512
memory_swap = 1024
2018-01-29 19:23:40 +00:00
}
2018-10-13 15:15:10 +00:00
volumes = [
{
host_path = "/mnt/xwing/config/sonarr"
container_path = "/config"
},
{
host_path = "/mnt/xwing/media/DL"
container_path = "/downloads"
},
{
host_path = "/mnt/xwing/media/TV"
container_path = "/tv"
},
]
2018-01-29 19:23:40 +00:00
env = [
"PUID=1004",
"PGID=1003",
"TZ=Asia/Kolkata",
]
2018-01-29 20:09:36 +00:00
2019-01-28 19:01:06 +00:00
networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}"
2018-01-29 19:23:40 +00:00
}