Deployment
Backers is designed to run anywhere a single static binary or container runs — a VPS, a container platform, a Raspberry Pi, or a CI job. There is no external service to provision.
Platform guides
Step-by-step setup for each target:
with-* — run it yourself
paas-* — platform-as-a-service
iaas-* — infrastructure-as-a-service
- AWS — ECS Fargate + EFS, or EC2
- Azure — Container Apps + Azure Files
- GCP — Compute Engine, or Cloud Run (ephemeral)
Minimal deploy
export JWT_SECRET="$(openssl rand -hex 32)" # required in production
export BACKERS_DATA=/var/lib/backers
export PORT=8080
backers serve
That's it. The server:
- creates
BACKERS_DATAanddata.dbon first run (migrations automatic) - generates the secrets-vault key inside
BACKERS_DATA - serves the API, admin dashboard (
/), OpenAPI (/api/docs), and all realtime streams onPORT
systemd unit
[Unit]
Description=Backers BaaS
After=network.target
[Service]
Environment=JWT_SECRET=... BACKERS_DATA=/var/lib/backers PORT=8080
ExecStart=/usr/local/bin/backers serve
Restart=always
User=backers
[Install]
WantedBy=multi-user.target
Behind a reverse proxy
Backers is plain HTTP/1.1 — put Caddy/nginx in front for TLS:
api.example.com {
reverse_proxy localhost:8080
}
WebSocket (/ws) and SSE (/api/*/stream) both work through standard reverse
proxies — SSE needs no special config beyond disabling response buffering if
your proxy buffers by default.
Data backup
Three options, simplest first:
- File copy — stop the server, copy
BACKERS_DATA/(SQLite + files + secrets key). To back up live, use option 2. GET /api/backup— admin-only SQLite snapshot download; restore by placing the file asdata.db.GET /api/export— portable JSON (collections, records, buckets, file metadata); pair with a copy ofBACKERS_DATA/files/for bytes.
Security checklist
-
JWT_SECRETset to a long random value (not the default) -
BACKERS_DATAon encrypted storage; secrets key backed up separately - Rate limiting is per-IP — front with a proxy if you need global limits
- SSE streams (
/api/logs/stream,/api/pubsub/*/stream,/api/notifications/stream) are unauthenticated — restrict them at the proxy if the data is sensitive -
/api/backup,/api/import,/api/exportneed anadmintoken — keep admin credentials out of client-side code - CORS is permissive — add origin restrictions at the proxy for browser-facing deployments
Scaling notes
Backers is single-node by design: one process, one SQLite file, in-memory cache and realtime hubs. It comfortably handles thousands of concurrent SSE/WS connections and moderate write throughput. For multi-node you would need external Postgres/Redis — at that point you're past the "one binary" value proposition; run one instance per tenant instead.