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 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Fable 5 committed 2026-07-05 21:41:42 +02:00
1 parent 1aba5707f8
commit 699008a168
1 file changed
+2 -2
+2 -2
View File
@@ -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/