mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
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>
23 lines
469 B
YAML
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
|