Files
computer-playbook/roles/web-app-decidim/meta/volumes.yml
kevinveenbirkenbachandClaude Opus 4.8 16eaeddad7 fix(swarm): render host-bind config files as docker configs
On swarm a 'type: bind' of a host-rendered file exists only on the node that rendered it; other nodes reject the service ('invalid mount config: bind source path does not exist') so it never converges. Convert the single-file binds to 'type: config' (swarm-distributed, content-hashed name rotates on change), mirroring the working nginx_conf sibling: moodle+wordpress msmtprc (0444), decidim allowed_hosts.rb (0444), bluesky pdsadmin (0555, executable).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 03:45:59 +02:00

23 lines
469 B
YAML

---
uploads:
type: volume
name: decidim_uploads
mounts:
- service: decidim
target: /app/public/uploads
logs:
type: volume
name: decidim_logs
mounts:
- service: decidim
target: /app/log
allowed_hosts:
type: config
source: "{{ [lookup('container', 'web-app-decidim', 'directories.instance'), 'allowed_hosts.rb'] | path_join }}"
mode: "0444"
mounts:
- service: decidim
target: /code/config/initializers/allowed_hosts.rb