Info
- Service Hub runs as Docker containers: the app, PostgreSQL and LiveKit (video streaming)
- Monitoring (Prometheus, Grafana) is an optional compose project of its own, see Local monitoring
- Locally one more container, Mailpit, catches all outgoing email
- You need Docker Desktop and the .NET 10 SDK
First run
- Clone PolisPlatform/ServiceHub
- Copy
.env.sample to .env and set your own ADMIN_PASSWORD (10+ characters). The other sample values are fine for local use
- Publish the app:
dotnet publish ServiceHub.csproj -c Release -o publish
- Start everything:
docker compose up -d --build
- Open
http://localhost:8080 and log in with ADMIN_EMAIL and ADMIN_PASSWORD from .env
- Compose also reads
docker-compose.override.yml on its own. It opens the local ports and adds Mailpit and the mocks
- Migrations run when the app starts, there is no manual database step
- The Docker app runs in Production mode: it refuses the sample admin password, mail goes to Mailpit (new password accounts confirm their email there) and streaming uses the local LiveKit with the dev key, which the override allows (
LiveKit__AllowDevSecret)
- The local LiveKit sends its webhooks to the Rider app. For the app in Docker set
LIVEKIT_WEBHOOK_URL=http://service-hub:8080/api/stream/webhook in .env
- The Rider run configuration Docker Compose publishes first and then starts the stack
Local addresses
http://localhost:8080 - console and API
http://localhost:8080/scalar/v1 - interactive API reference
http://localhost:8025 - Mailpit inbox with every email the app sent