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:

Images

ImageContents
spicaengine/apiThe API. Entry point node src/main.js, configured with options.
spicaengine/panelThe admin panel, served by nginx on port 80.
spicaengine/postgresPostgreSQL with the pg_cron extension, for PostgreSQL deployments. Tags look like 18-<version>.
spicaengine/migrateDatabase migrations, run by the Helm chart before upgrades.
spicaengine/mongoreplicationcontrollerInitializes 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

RequirementWhy
A databaseMongoDB as a replica set (even with one node), or PostgreSQL. See MongoDB and PostgreSQL.
A master keyAll 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 APIThe panel calls the API at /api on its own origin. Route / to the panel and /api to the API.
Persistent storageMount a volume at --persistent-path, or use S3/GCS for storage and function sources.
TLSTerminate HTTPS at your ingress or load balancer. Refresh token cookies require it.
WebSocketsAllow upgrades on /api for realtime streams and the firehose.

Next steps