Nodo Self-Host architecture with Docker Compose
#07Cloud or Self-Hosted Deployment with Full Data Sovereignty
In this article
Core services in the production Docker Compose stack
Nodo Self-Host runs as a self-contained Docker Compose stack designed for single-host or split-tier Linux deployments:
- Edge proxy (Traefik v3 with read-only File Provider config, or your existing HTTPS reverse proxy) terminating TLS in front of the internal Nginx router
- Fastify API server (
@nodo/server) serving tRPC, REST endpoints, authentication, and property WebSocket updates - Hocuspocus collaboration sidecar handling real-time Yjs document sync over
/ws - PostgreSQL primary database storing entities, typed properties, relations, views, and audit logs
- Valkey backing sessions, rate limits, pub/sub fan-out, and BullMQ background jobs
- S3-compatible object storage (SeaweedFS locally or external S3) holding uploaded files and previews
All application containers run as non-root users on isolated internal Docker networks.

Plan host sizing, persistence, and network boundaries
Before bringing up the stack, verify host resources and keep database ports off the public internet:
- Provision SSD storage with dedicated persistent volumes for PostgreSQL data, SeaweedFS buckets, and Valkey append-only state
- Keep PostgreSQL, Valkey, Hocuspocus, and internal SeaweedFS ports bound to private Docker or WireGuard networks—never expose them publicly
- Store all secrets (
JWT_SECRET, database credentials, S3 keys, SMTP/mail credentials) in a protected.envfile excluded from version control - Configure outbound transactional email (SMTP or Postbox) so invitations, password resets, and notifications deliver reliably
Allocate extra RAM for PostgreSQL shared buffers and BullMQ workers when supporting large teams or heavy imports.
Verify service health after startup
Once docker compose up -d finishes, confirm every dependency is healthy before inviting users:
- Run
docker compose psand confirm API, Hocuspocus, PostgreSQL, Valkey, Nginx, and storage containers all report healthy - Check the API health endpoint over your configured HTTPS origin and inspect container logs for startup warnings
- Sign in as the initial administrator, create a test page, upload a small image, and open the page in two tabs to verify real-time sync
- Confirm Prometheus/Grafana metrics or external uptime probes monitor API latency, queue depth, and disk free space
Do not treat a running container list alone as production acceptance until TLS, uploads, mail, and backup restore are verified.