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 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-03-21 16:28:11 +00:00
parent 205f396942
commit 6928b8a622
+8 -3
View File
@@ -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