Improve docker cifs volume configs

This commit is contained in:
Tobias Reisinger 2026-01-25 14:05:46 +01:00
parent 635a0c4da8
commit bd4bd550bf
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 11 additions and 6 deletions

View file

@ -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"

View file

@ -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 }}"

View file

@ -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:

View file

@ -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 }}"

View file

@ -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" = {