Docker Compose (recommended)
The quickest path to a production deployment:docker-compose.yml
Security hardening
Sundew’s Docker image is hardened by default:| Property | Default |
|---|---|
| Root filesystem | Read-only (--read-only) |
| User | Non-root, UID 1001 (sundew) |
| Capabilities | None (--cap-drop=ALL) |
| Writable paths | ./data/ only |
| Health check | /health endpoint |
Network isolation
For maximum security, deploy with no outbound network access:Storage limits
Prevent disk exhaustion from high-traffic attacks:- SQLite database: 500 MB max (oldest events pruned)
- JSONL log: 100 MB with 5 rotated backups
- Rate limiting: 100 req/s per source IP (configurable)
Deployment checklist
Before going live, verify:Building from source
python:3.12-slim with all security hardening applied.