mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
Every Weblate container (weblate, beat, worker) runs collectstatic into STATIC_ROOT=/app/cache/static on start. /app/cache is the `cache` volume the three services share; in swarm it lives on NFS and every replica of every service mounts the same directory. Concurrent collectstatic runs delete and rewrite each other's hashed files, so the tasks crash-loop: weblate.1, .2, .3 and worker.1 on both swarm nodes died with "FileNotFoundError: [Errno 2] No such file or directory: '/app/cache/static/admin/js/vendor/select2/i18n/az.270c257daf81.js'" (and logo-32.png, dark_mode.a364bd93cdcc.css, widgets.8f8bf7f533a4.js), which failed Weblate#1 in runs 40625679270 and 40243434327. meta/volumes.yml mounts a tmpfs at /app/cache/static into every service that shares the cache volume, so each container collects and serves its own copy, consistent with its own manifest; the rest of /app/cache stays shared. container_volumes renders it as a long-form tmpfs mount for compose and swarm alike, as it already does for the Matrix bridges. test_static_root_per_container asserts that every service mounting the shared cache also gets the tmpfs at the static root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>