Get volume to work
This commit is contained in:
+8
-15
@@ -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 = [
|
||||||
|
|||||||
+2
-2
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+344
-248
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+300
-902
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user