Initial commit

This commit is contained in:
Marc Fokkert
2023-07-26 21:01:51 +02:00
commit e357babf6d
52 changed files with 1681 additions and 0 deletions

43
ru-torrent.tf Normal file
View File

@@ -0,0 +1,43 @@
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.latest
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
]
}
}