Improve docker cifs volume configs
This commit is contained in:
parent
635a0c4da8
commit
bd4bd550bf
5 changed files with 11 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ class FilterModule(object):
|
||||||
"hooks": copy.deepcopy(hooks)
|
"hooks": copy.deepcopy(hooks)
|
||||||
}
|
}
|
||||||
|
|
||||||
if location["type"] == "docker":
|
if location["type"] == "docker" or location["type"] == "docker_cifs":
|
||||||
new_location["from"] = name
|
new_location["from"] = name
|
||||||
new_location["type"] = "volume"
|
new_location["type"] = "volume"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,5 @@ calibre_web_compose:
|
||||||
data:
|
data:
|
||||||
driver_opts:
|
driver_opts:
|
||||||
type: cifs
|
type: cifs
|
||||||
o: "username={{ opentofu.hcloud_storage_box_accounts.calibre_web.user }},password={{ opentofu.hcloud_storage_box_accounts.calibre_web.pass }}"
|
o: "seal,username={{ opentofu.hcloud_storage_box_accounts.calibre_web.user }},password={{ opentofu.hcloud_storage_box_accounts.calibre_web.pass }}"
|
||||||
device: "//{{ opentofu.hcloud_storage_box_accounts.calibre_web.host }}/{{ opentofu.hcloud_storage_box_accounts.calibre_web.user }}"
|
device: "//{{ opentofu.hcloud_storage_box_accounts.calibre_web.host }}/{{ opentofu.hcloud_storage_box_accounts.calibre_web.user }}"
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ immich_compose:
|
||||||
upload:
|
upload:
|
||||||
driver_opts:
|
driver_opts:
|
||||||
type: cifs
|
type: cifs
|
||||||
o: "username={{ opentofu.hcloud_storage_box_accounts.immich.user }},password={{ opentofu.hcloud_storage_box_accounts.immich.pass }}"
|
o: "seal,username={{ opentofu.hcloud_storage_box_accounts.immich.user }},password={{ opentofu.hcloud_storage_box_accounts.immich.pass }}"
|
||||||
device: "//{{ opentofu.hcloud_storage_box_accounts.immich.host }}/{{ opentofu.hcloud_storage_box_accounts.immich.user }}"
|
device: "//{{ opentofu.hcloud_storage_box_accounts.immich.host }}/{{ opentofu.hcloud_storage_box_accounts.immich.user }}"
|
||||||
pgdata:
|
pgdata:
|
||||||
model-cache:
|
model-cache:
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,8 @@ jellyfin_compose:
|
||||||
volumes:
|
volumes:
|
||||||
config:
|
config:
|
||||||
cache:
|
cache:
|
||||||
media: "{{ vault_jellyfin.media_volume_driver }}"
|
media:
|
||||||
|
driver_opts:
|
||||||
|
type: cifs
|
||||||
|
o: "seal,username={{ opentofu.hcloud_storage_box_accounts.jellyfin.user }},password={{ opentofu.hcloud_storage_box_accounts.jellyfin.pass }}"
|
||||||
|
device: "//{{ opentofu.hcloud_storage_box_accounts.jellyfin.host }}/{{ opentofu.hcloud_storage_box_accounts.jellyfin.user }}"
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ services = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "calibre_web_data"
|
name = "calibre_web_data"
|
||||||
type = "docker"
|
type = "docker_cifs"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
monitoring = {
|
monitoring = {
|
||||||
|
|
@ -307,7 +307,7 @@ services = {
|
||||||
backup = [
|
backup = [
|
||||||
{
|
{
|
||||||
name = "immich_upload"
|
name = "immich_upload"
|
||||||
type = "docker"
|
type = "docker_cifs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "immich_database"
|
name = "immich_database"
|
||||||
|
|
@ -381,6 +381,7 @@ services = {
|
||||||
}
|
}
|
||||||
auth = false
|
auth = false
|
||||||
database = false
|
database = false
|
||||||
|
storage_box = true
|
||||||
},
|
},
|
||||||
|
|
||||||
"jitsi" = {
|
"jitsi" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue