Components
Two databases is a deliberate choice. PostgreSQL carries the transactional side,
ClickHouse the high-volume event data. Keeping them apart stops a heavy dashboard from
slowing the decision path.
Environment variables
Each service needs a.env. The ones that matter most:
Bring-up order
1
Start the infrastructure
PostgreSQL, ClickHouse and NATS. Wait for health checks to pass.
2
Apply migrations
Schema migrations run at application start; the first boot can take a while.
3
Start the worker
It creates the queue streams and binds the consumers. It must be up before the API.
4
Start the API and UI
Server.Api and Server.Blazor.5
Sign in as the administrator
Use the account created on first boot, and change its password immediately.