From 31bf3481367296432e992af268e7320d3ed7b77d Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Sat, 21 Mar 2026 21:36:22 +0000 Subject: [PATCH] fix: Add media_files volume to worker service (STI-84) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Celery worker was missing the media_files:/app/media volume mount, causing DMS files saved by background tasks (email attachments, Bestätigungsschreiben PDFs) to land in ephemeral container storage instead of the persistent named volume. After any container restart, these files were lost while DB records remained → Http404. Co-Authored-By: Claude Sonnet 4.6 --- deploy-production/docker-compose.prod.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy-production/docker-compose.prod.yml b/deploy-production/docker-compose.prod.yml index 70b4467..9693458 100644 --- a/deploy-production/docker-compose.prod.yml +++ b/deploy-production/docker-compose.prod.yml @@ -79,6 +79,8 @@ services: depends_on: - redis - db + volumes: + - media_files:/app/media command: ["celery", "-A", "core", "worker", "-l", "info"] beat: