From 6928b8a6225520620b51820418cf11886a40f08c Mon Sep 17 00:00:00 2001 From: James Smith Date: Sat, 21 Mar 2026 16:28:11 +0000 Subject: [PATCH] Fix Docker volume mount shadowing data Python modules Mounting ./data:/app/data caused the host directory to shadow the entire /app/data Python package, making modules like data.oui unavailable and crashing gunicorn on startup. Mount only the three runtime output subdirectories instead. Fixes #200 Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 50602e9..e4c82c6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,8 +28,11 @@ services: devices: - /dev/bus/usb:/dev/bus/usb volumes: - # Persist decoded images and database across container rebuilds - - ./data:/app/data + # Persist runtime output directories across container rebuilds. + # Mount subdirectories individually so Python modules in /app/data are not shadowed. + - ./data/weather_sat:/app/data/weather_sat + - ./data/radiosonde:/app/data/radiosonde + - ./data/subghz:/app/data/subghz # Optional: mount logs directory # - ./logs:/app/logs environment: @@ -86,7 +89,9 @@ services: devices: - /dev/bus/usb:/dev/bus/usb volumes: - - ./data:/app/data + - ./data/weather_sat:/app/data/weather_sat + - ./data/radiosonde:/app/data/radiosonde + - ./data/subghz:/app/data/subghz environment: - TZ=${TZ:-UTC} - INTERCEPT_HOST=0.0.0.0