From 4490ee77d674e1e4636998a980eb718b0c122815 Mon Sep 17 00:00:00 2001 From: Dillard Blom Date: Sat, 11 Jul 2026 09:47:13 +0200 Subject: [PATCH] Fix stale qr-storage volume mount path in dev docker-compose.yml Fase 1 hardening (2026-07-08) moved saved QR code storage from src/saved_qrcode/ to /var/www/qrcode-storage/ (outside the webroot, SAVED_QRCODE_DIRECTORY in config.php), but docker-compose.yml's volume mount was never updated and still pointed at the old path (/var/www/html/saved_qrcode). The named volume was therefore mounted somewhere the app never wrote to - every actual qr code image the app generates at /var/www/qrcode-storage/ lived only in the container's ephemeral filesystem and was silently lost on every container recreation, while the qrcode_storage volume itself stayed permanently empty. DB rows (filenames/content) were never affected, only the generated image files. Confirmed as the cause of qr.ensembia.com's "old and new QR codes not showing in the list" report: qrcode_image.php's is_file() check failed because the file genuinely wasn't there anymore. docker-compose.prod.yml already had the correct path - only the dev compose file (what qr.ensembia.com actually runs) had this bug. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Fo3DiRRpmz2DXjD7Uzhc8u --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index fc1cdbd..02ad435 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: php-dynamic-qrcode-db: condition: service_healthy volumes: - - php_dynamic_qrcode_saved_qrcode_data:/var/www/html/saved_qrcode + - php_dynamic_qrcode_saved_qrcode_data:/var/www/qrcode-storage networks: - php-dynamic-qrcode-network