Use volume for datarr

Disable rutorrent and esphome
Updates
This commit is contained in:
Marc Fokkert
2025-02-21 12:23:41 +01:00
parent 8cc469a091
commit 9b78b43c7f
10 changed files with 199 additions and 689 deletions

View File

@@ -40,12 +40,6 @@ resource "docker_container" "audiobookshelf" {
volume_name = "truenas-arr" volume_name = "truenas-arr"
} }
# mounts {
# target = "/audiobooks"
# source = "/share/datarr/media/audiobooks"
# type = "bind"
# }
lifecycle { lifecycle {
ignore_changes = [ ignore_changes = [
ulimit, ulimit,

View File

@@ -38,16 +38,9 @@ resource "docker_container" "jellyfin" {
} }
# https://wiki.servarr.com/docker-guide#Consistent_and_well_planned_paths # https://wiki.servarr.com/docker-guide#Consistent_and_well_planned_paths
mounts { volumes {
target = "/media" container_path = "/datarr"
source = "/share/datarr/media" volume_name = "truenas-arr"
type = "bind"
}
mounts {
target = "/media-hdd"
source = "/share/datarr-hdd/media"
type = "bind"
} }
devices { devices {

View File

@@ -31,10 +31,9 @@ resource "docker_container" "radarr" {
type = "bind" type = "bind"
} }
mounts { volumes {
target = "/data" container_path = "/data"
source = "/share/datarr" volume_name = "truenas-arr"
type = "bind"
} }
lifecycle { lifecycle {

View File

@@ -31,10 +31,9 @@ resource "docker_container" "readarr" {
type = "bind" type = "bind"
} }
mounts { volumes {
target = "/data" container_path = "/data"
source = "/share/datarr" volume_name = "truenas-arr"
type = "bind"
} }
lifecycle { lifecycle {

View File

@@ -32,10 +32,9 @@ resource "docker_container" "sabnzdb" {
type = "bind" type = "bind"
} }
mounts { volumes {
target = "/data/usenet" container_path = "/data"
source = "/share/datarr/usenet" volume_name = "truenas-arr"
type = "bind"
} }
lifecycle { lifecycle {

View File

@@ -31,10 +31,9 @@ resource "docker_container" "sonarr" {
type = "bind" type = "bind"
} }
mounts { volumes {
target = "/data" container_path = "/data"
source = "/share/datarr" volume_name = "truenas-arr"
type = "bind"
} }
lifecycle { lifecycle {

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "1.5.5", "terraform_version": "1.5.5",
"serial": 4569, "serial": 4574,
"lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec", "lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@@ -970,8 +970,8 @@
"group_add": null, "group_add": null,
"healthcheck": null, "healthcheck": null,
"host": [], "host": [],
"hostname": "275155c84ed6", "hostname": "c1640b5ae290",
"id": "275155c84ed66b0740cde4ce20f543c03d030db169f0070d6643abb039dc8641", "id": "c1640b5ae29093277bc6e56fd5f63d2fd633ccd624a00bd7ff73ac8f337fa761",
"image": "sha256:249288fd3bed321b1d2cddcd7c5cbe831b9b44cd93dcc51f08207032dbe50cf2", "image": "sha256:249288fd3bed321b1d2cddcd7c5cbe831b9b44cd93dcc51f08207032dbe50cf2",
"init": false, "init": false,
"ipc_mode": "private", "ipc_mode": "private",
@@ -1012,7 +1012,7 @@
"ip_address": "192.168.2.146", "ip_address": "192.168.2.146",
"ip_prefix_length": 24, "ip_prefix_length": 24,
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:73:4b:d4:84", "mac_address": "02:42:ee:53:4d:f7",
"network_name": "qnet-static-eth0-48e715" "network_name": "qnet-static-eth0-48e715"
} }
], ],
@@ -1050,7 +1050,7 @@
"userns_mode": "", "userns_mode": "",
"volumes": [ "volumes": [
{ {
"container_path": "/audiobooks", "container_path": "/truenas-arr",
"from_container": "", "from_container": "",
"host_path": "", "host_path": "",
"read_only": null, "read_only": null,
@@ -1617,7 +1617,7 @@
"healthcheck": null, "healthcheck": null,
"host": [], "host": [],
"hostname": "dozzle", "hostname": "dozzle",
"id": "d8dce4efc56780f340a2c6652619dfc9316c71ba51247bde787417c4044ca729", "id": "99c1820243302f11ddf3b1e4da4e1f7c9da875ef45aa772c394164abc4598705",
"image": "sha256:9ceba54318cdeb63bbfa21d6176af1720f46a323c62aee80f43db15f47c9eceb", "image": "sha256:9ceba54318cdeb63bbfa21d6176af1720f46a323c62aee80f43db15f47c9eceb",
"init": false, "init": false,
"ipc_mode": "private", "ipc_mode": "private",
@@ -1649,7 +1649,7 @@
"ip_address": "192.168.2.144", "ip_address": "192.168.2.144",
"ip_prefix_length": 24, "ip_prefix_length": 24,
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:82:00:8f:c1", "mac_address": "02:42:05:1e:42:67",
"network_name": "qnet-static-eth0-48e715" "network_name": "qnet-static-eth0-48e715"
} }
], ],
@@ -6096,16 +6096,6 @@
"must_run": true, "must_run": true,
"name": "traccar", "name": "traccar",
"network_data": [ "network_data": [
{
"gateway": "172.29.0.1",
"global_ipv6_address": "",
"global_ipv6_prefix_length": 0,
"ip_address": "172.29.0.2",
"ip_prefix_length": 22,
"ipv6_gateway": "",
"mac_address": "02:42:ac:1d:00:02",
"network_name": "mariadb"
},
{ {
"gateway": "192.168.2.1", "gateway": "192.168.2.1",
"global_ipv6_address": "", "global_ipv6_address": "",
@@ -6115,6 +6105,16 @@
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:e1:d7:ce:9c", "mac_address": "02:42:e1:d7:ce:9c",
"network_name": "qnet-static-eth0-48e715" "network_name": "qnet-static-eth0-48e715"
},
{
"gateway": "172.29.0.1",
"global_ipv6_address": "",
"global_ipv6_prefix_length": 0,
"ip_address": "172.29.0.2",
"ip_prefix_length": 22,
"ipv6_gateway": "",
"mac_address": "02:42:ac:1d:00:02",
"network_name": "mariadb"
} }
], ],
"network_mode": "default", "network_mode": "default",