Live ship control system for the Strait of Hormuz scenario. Built with Django and real-time services.
- Create your environment file:
cp .env.example .env
- Set your Postgres URL(s) in
.env. - Run:
docker compose up --build
- In a new terminal, run migrations and seed data:
docker compose exec web python manage.py migratedocker compose exec web python manage.py load_fleet
- Start the simulator (new terminal):
docker compose exec web python manage.py run_simulation
App URL: http://localhost:8000
- Install dependencies:
pip install -r requirements.txt
- Run migrations:
python manage.py migrate
- Load initial data:
python manage.py load_fleet
- Start server:
python manage.py runserver
- Start the simulator:
python manage.py run_simulation
Fleet212_POSTGRES_URLorFleet212_PRISMA_DATABASE_URL(recommended)DATABASE_URL(alternative name)REDIS_URL(required for WebSocket broadcasts across processes)
If no database URL is set, Django falls back to SQLite for local use.