Get volume to work

This commit is contained in:
Marc Fokkert
2025-02-20 23:25:40 +01:00
parent 5c66c7f8f4
commit 8cc469a091
5 changed files with 9067 additions and 1167 deletions

View File

@@ -35,23 +35,16 @@ resource "docker_container" "audiobookshelf" {
type = "bind" type = "bind"
} }
mounts { volumes {
target = "/audiobooks" container_path = "/truenas-arr"
source = "/share/datarr/media/audiobooks" volume_name = "truenas-arr"
type = "bind"
} }
mounts { # mounts {
target = "/podcasts" # target = "/audiobooks"
source = "/share/datarr/media/podcasts" # source = "/share/datarr/media/audiobooks"
type = "bind" # type = "bind"
} # }
mounts {
target = "/podcasts"
source = "/share/datarr/media/podcasts"
type = "bind"
}
lifecycle { lifecycle {
ignore_changes = [ ignore_changes = [

View File

@@ -52,7 +52,7 @@ resource "docker_volume" "truenas-arr" {
name = "truenas-arr" name = "truenas-arr"
driver_opts = { driver_opts = {
type = "cifs", type = "cifs",
device = "//truenas.local/arr-media" device = "//172.20.0.188/arr-media"
o = "addr=truenas.local,username=dqnap,password=vPKnUmApyQRE5$n,file_mode=0777,dir_mode=0777" o = "username=dqnap,password=vPKnUmApyQRE5$n,file_mode=0777,dir_mode=0777"
} }
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff