A real-time public transportation information system, developed. Infobús processes GTFS Schedule and Realtime feeds and delivers live transit information through digital displays at bus stops, a web frontend, REST APIs, and WebSocket streams — all orchestrated through Docker Compose.
| Service | Role | Tech |
|---|---|---|
| orchestrator | Control plane, REST API, admin, WebSockets | Django / Daphne (ASGI) |
| engine | Background task processing | Celery worker |
| scheduler | Triggers periodic tasks | Celery Beat |
| frontend | Web frontend | Nuxt |
| database | Durable persistence with geospatial support | PostgreSQL + PostGIS |
| state | Cache, sessions, and Celery broker | Redis |
| broker | Async messaging | RabbitMQ |
| lake | Object storage | MinIO |
FastMCP, Fuseki, and the documentation site are deployed separately from the development and production Compose stacks.
See ARCHITECTURE.md for detailed service mandates and design principles.
- website — Main site pages, user management, public interfaces
- alerts — Screen management, real-time data display via WebSockets
- gtfs — Abstract GTFS models and field types from the
gtfs-djangopackage (PyPI), subclassed byfeed - engine — Information service providers and WebSocket consumers
- api — RESTful API endpoints with DRF integration
- Celery tasks periodically fetch GTFS Realtime feeds from transit agencies
- Data is validated, processed, and classified by relevance to specific screens/stops
- Django Channels WebSockets push live updates to connected display screens
- Raspberry Pi devices in kiosk mode render the passenger information
- Docker Engine 24+ and Docker Compose v2
- Git
git clone https://github.com/simovilab/infobus.git
cd infobus
cp .env.example .env # edit with your values
./scripts/dev.shThe development stack includes licensed MinIO storage. Provide minio.license
in the repository root and set MINIO_ROOT_PASSWORD in .env before startup.
The startup script pulls images, builds containers, runs migrations, and performs basic service checks. On first run this takes 1–2 minutes.
# Logs
docker compose -f compose.dev.yml logs -f # all services
docker compose -f compose.dev.yml logs -f orchestrator # single service
# Django management
docker compose -f compose.dev.yml exec orchestrator uv run python manage.py migrate
docker compose -f compose.dev.yml exec orchestrator uv run python manage.py createsuperuser
docker compose -f compose.dev.yml exec orchestrator uv run python manage.py shell
# Stop
docker compose -f compose.dev.yml down# From backend/
ruff check .
ruff format .
mypy .
pytestProduction runs on Docker Compose behind a Traefik reverse proxy that handles TLS termination via Let's Encrypt. All traffic goes through port 443. No services expose ports directly to the host.
cp .env.example .env # add production domains and credentials (see below)
./scripts/prod.sh# Domain routing (Traefik)
ORCHESTRATOR_DOMAIN=api.example.com
UI_DOMAIN=app.example.com
LAKE_DOMAIN=lake.example.com
CERT_RESOLVER=letsencrypt
# Credentials
SECRET_KEY=<generate-a-strong-key>
DB_PASSWORD=<strong-password>
REDIS_PASSWORD=<strong-password>
RABBITMQ_USER=infobus
RABBITMQ_PASS=<strong-password>
MINIO_ROOT_USER=infobus
MINIO_ROOT_PASSWORD=<strong-password>Provide the licensed minio.license file in the repository root before
starting the MinIO service. FastMCP, Fuseki, and the documentation site are
deployed separately and have their own domain configuration.
| Service | Domain variable | Description |
|---|---|---|
| orchestrator | ORCHESTRATOR_DOMAIN |
Django API and admin |
| frontend | UI_DOMAIN |
Nuxt frontend |
| lake | LAKE_DOMAIN |
MinIO S3-compatible API |
Internal-only (not exposed): database, state, engine, scheduler, broker, and the MinIO console.
# Rebuild and restart after code changes
docker compose -f compose.prod.yml build orchestrator frontend
docker compose -f compose.prod.yml up -d orchestrator frontend
# Django management
docker compose -f compose.prod.yml exec orchestrator uv run python manage.py migrate
docker compose -f compose.prod.yml exec orchestrator uv run python manage.py createsuperuser
# Stop
docker compose -f compose.prod.yml down| Endpoint | Description |
|---|---|
/api/ |
API root (DRF browsable interface) |
/api/gtfs/ |
GTFS Schedule and Realtime data |
/api/alerts/ |
Screen management and alert systems |
/api/weather/ |
Weather information for display locations |
| Endpoint | Description |
|---|---|
/ws/alerts/ |
Real-time screen updates |
/ws/status/ |
Live transit data streaming |
- ARCHITECTURE.md — Service mandates and design principles
- docs/ — Full documentation site (run locally or deployed at
DOCS_DOMAIN)
See the guidelines.
- Email: [email protected]
- Website: simovi.org
Apache 2.0