Files
qnap-containers/ru-torrent.tf

44 lines
810 B
HCL

data "docker_registry_image" "ru-torrent" {
name = "linuxserver/rutorrent"
}
resource "docker_image" "ru-torrent" {
name = data.docker_registry_image.ru-torrent.name
pull_triggers = [data.docker_registry_image.ru-torrent.sha256_digest]
}
resource "docker_network" "ru-torrent" {
name = "ru-torrent"
}
resource "docker_container" "ru-torrent" {
image = docker_image.ru-torrent.image_id
name = "ru-torrent"
mounts {
target = "/config"
source = "/share/appdata/ru-torrent"
type = "bind"
}
mounts {
target = "/downloads"
source = "/share/Download"
type = "bind"
}
restart = "always"
networks_advanced {
name = docker_network.bridge.name
ipv4_address = "192.168.2.121"
}
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
}