Initial commit
This commit is contained in:
43
ru-torrent.tf
Normal file
43
ru-torrent.tf
Normal 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
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user