MPR Control
Scripts for running and deploying MPR.
Setup
-
Add to
/etc/hosts:127.0.0.1 mpr.local.ar -
Copy environment template:
cp ctrl/.env.template ctrl/.env -
Start the stack:
./ctrl/run.sh
URLs
- http://mpr.local.ar/admin - Django Admin
- http://mpr.local.ar/api/docs - FastAPI Swagger
- http://mpr.local.ar/ui - Timeline UI
Commands
# Start all services
./ctrl/run.sh
# Start in detached mode
./ctrl/run.sh -d
# Rebuild and start
./ctrl/run.sh --build
# Stop all
./ctrl/run.sh down
# View logs
./ctrl/run.sh logs -f
# Deploy to remote (configure SERVER/REMOTE_PATH in .env)
./ctrl/deploy.sh
./ctrl/deploy.sh --restart
./ctrl/deploy.sh --dry-run
Ports
| Service | Internal | External |
|---|---|---|
| nginx | 80 | 80 |
| Django | 8701 | 8701 |
| FastAPI | 8702 | 8702 |
| Timeline | 5173 | 5173 |
| PostgreSQL | 5432 | 5433 |
| Redis | 6379 | 6380 |