From 699008a16817fa8553cb3f7348b9e949c2d4253a Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 5 Jul 2026 18:49:06 +0200 Subject: [PATCH] fix(web-app-nextcloud): mount the infinito config dir as a bind, not a swarm config infinito_conf's source is a DIRECTORY (volumes/infinito, rendered from config/*.j2), but a Docker Swarm config object is a single file, so docker stack deploy aborted the whole nextcloud stack with 'read .../infinito: is a directory'. Compose only tolerated it by emulating configs: as bind-mounts. Declare it as type: bind read_only so a directory payload mounts correctly in both modes; the single-file nginx_conf and nextcloud_includes stay config objects. Co-Authored-By: Claude Fable 5 --- roles/web-app-nextcloud/meta/volumes.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/web-app-nextcloud/meta/volumes.yml b/roles/web-app-nextcloud/meta/volumes.yml index d19aebf73f..a8a7a93410 100644 --- a/roles/web-app-nextcloud/meta/volumes.yml +++ b/roles/web-app-nextcloud/meta/volumes.yml @@ -41,9 +41,9 @@ nginx_conf: target: /etc/nginx/nginx.conf infinito_conf: - type: config + type: bind source: "{{ [ lookup('container', 'web-app-nextcloud', 'directories.volumes'), 'infinito' ] | path_join }}" - mode: "0444" + read_only: true mounts: - service: nextcloud target: /var/www/html/config/infinito/