Self-hosting
Choose how to run Spica in production, what every deployment needs, and where to find the configuration reference.
Spica is distributed as Docker images, so it runs anywhere containers run. Pick the setup that matches your team:
Docker ComposeKubernetes with HelmLocal with the CLI
One machine, a few containers. Good for small production workloads, staging and demos.
The official chart, with database, ingress, probes, secrets, migrations and scaling.
spica project start for development on your machine.
Images
| Image | Contents |
|---|---|
spicaengine/api | The API. Entry point node src/main.js, configured with options. |
spicaengine/panel | The admin panel, served by nginx on port 80. |
spicaengine/postgres | PostgreSQL with the pg_cron extension, for PostgreSQL deployments. Tags look like 18-<version>. |
spicaengine/migrate | Database migrations, run by the Helm chart before upgrades. |
spicaengine/mongoreplicationcontroller | Initializes and maintains MongoDB replica sets in Kubernetes. |
Tags follow Spica releases (for example 0.22.1). Pin a version in production.
What every deployment needs
| Requirement | Why |
|---|---|
| A database | MongoDB as a replica set (even with one node), or PostgreSQL. See MongoDB and PostgreSQL. |
| A master key | All encryption and signing secrets are derived from it. Generate a long random value and keep it safe. |
| A public URL | --public-url must be the URL clients use, including /api when the API is served under that path. |
| One host for panel and API | The panel calls the API at /api on its own origin. Route / to the panel and /api to the API. |
| Persistent storage | Mount a volume at --persistent-path, or use S3/GCS for storage and function sources. |
| TLS | Terminate HTTPS at your ingress or load balancer. Refresh token cookies require it. |
| WebSockets | Allow upgrades on /api for realtime streams and the firehose. |