Dev: run full system via main.py in compose; add config.compose.json pointing MQTT to 'mqtt' service and map /storage

This commit is contained in:
Alireza Vaezi
2025-08-07 21:07:07 -04:00
parent 6255279d0d
commit 458c04608c
2 changed files with 95 additions and 2 deletions

View File

@@ -6,13 +6,13 @@ services:
working_dir: /app
volumes:
- ./api:/app
- ./api/storage:/app/storage
- ./api/storage:/storage
environment:
- PYTHONUNBUFFERED=1
command: >
sh -lc "
if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; else pip install --no-cache-dir -e .; fi;
uvicorn usda_vision_system.api.server:app --host 0.0.0.0 --port 8000 --reload
python main.py --config config.compose.json
"
ports:
- "8000:8000"