mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 06:01:56 -07:00
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:
+8
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user