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)
|
||||
}
|
||||
|
||||
if location["type"] == "docker":
|
||||
if location["type"] == "docker" or location["type"] == "docker_cifs":
|
||||
new_location["from"] = name
|
||||
new_location["type"] = "volume"
|
||||
|
||||
|
|
|
|||
|
|
@ -22,5 +22,5 @@ calibre_web_compose:
|
|||
data:
|
||||
driver_opts:
|
||||
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 }}"
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ immich_compose:
|
|||
upload:
|
||||
driver_opts:
|
||||
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 }}"
|
||||
pgdata:
|
||||
model-cache:
|
||||
|
|
|
|||
|
|
@ -23,4 +23,8 @@ jellyfin_compose:
|
|||
volumes:
|
||||
config:
|
||||
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"
|
||||
type = "docker"
|
||||
type = "docker_cifs"
|
||||
}
|
||||
]
|
||||
monitoring = {
|
||||
|
|
@ -307,7 +307,7 @@ services = {
|
|||
backup = [
|
||||
{
|
||||
name = "immich_upload"
|
||||
type = "docker"
|
||||
type = "docker_cifs"
|
||||
},
|
||||
{
|
||||
name = "immich_database"
|
||||
|
|
@ -381,6 +381,7 @@ services = {
|
|||
}
|
||||
auth = false
|
||||
database = false
|
||||
storage_box = true
|
||||
},
|
||||
|
||||
"jitsi" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue