Docker Compose
Storsko Core ships with a docker-compose.yml for running the full stack locally or in production.
Docker Compose
Storsko Core ships with a docker-compose.yml for running the full stack locally or in production.
Services
| Service | Port | Description |
|---|---|---|
postgres | 5432 | PostgreSQL 16 — primary database |
api-server | 3000 | Storsko Core REST API |
web | 3001 | Next.js web dashboard |
Quick start
Environment variables
Copy .env.example to .env and set:
Generate a root key:
Running migrations
This applies all pending SQL migrations from packages/api-server/migrations/.
Health check
Custom compose override
Create docker-compose.override.yml to extend the base compose without modifying the checked-in file:
Authentication & Authorization
Storsko uses a two-layer authentication model. The root API key authenticates operators and administrators who manage the Storsko instance. Agent JWTs authenticate individual agents at runtime. In the commercial platform, Keycloak SSO adds a third layer for human users accessing the dashboard and APIs.
Production Deployment