nebula/media/sonarr.tf

46 lines
864 B
Terraform
Raw Permalink Normal View History

2018-10-13 15:15:10 +00:00
module "sonarr-container" {
name = "sonarr"
source = "../modules/container"
image = "linuxserver/sonarr:latest"
web = {
2018-10-13 15:15:10 +00:00
expose = true
port = 8989
host = "sonarr.${var.domain}"
2018-01-29 19:23:40 +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 = [
{
2023-07-10 11:31:30 +00:00
host_path = "/mnt/zwing/config/sonarr"
2018-10-13 15:15:10 +00:00
container_path = "/config"
},
2023-07-10 11:31:30 +00:00
# Backups stay on spinning disks
{
host_path = "/mnt/xwing/backups/config/sonarr"
container_path = "/config/Backups"
},
2018-10-13 15:15:10 +00:00
{
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
networks = [docker_network.media.id, data.docker_network.bridge.id]
2018-01-29 19:23:40 +00:00
}