Production cookies are Secure and SameSite=None, scoped to your root domain, so the API host must serve HTTPS. If the API runs on plain HTTP, the browser drops the session cookie and every login looks broken.
The mailer always sends through nodemailer over SMTP. SMTP_TRANSPORT appears in .env.example with values smtp-auth, smtp-api, and resend, but no code reads that variable. Set it to smtp-auth and configure the SMTP_* variables. Delivery pauses and cost guards are environment-driven through the EMAIL_OUTBOX_* variables.
Media uses one S3-compatible bucket per deployment. Cloudflare R2 needs MEDIA_UPLOAD_REGION set to auto and a public base URL, either a custom domain connected to the bucket or an r2.dev URL. Without a public route, images render as access denied. The dashboard upload endpoint accepts images only, 10 MB per file.
Self-hosting overview
The four services, the requirements, and how traffic moves between them.
Deploy with Docker
The compose walkthrough from env file to first account, plus upgrades and rollback.
Database
The DATABASE_URL shape, the migration lifecycle, and the db: scripts.
Environment variables
Every variable the server reads, grouped by concern and marked required or optional.
SMTP variables, the outbox controls, and the Amazon SES feedback webhook.
Media
S3, Cloudflare R2, and MinIO settings for profile images, logos, and editor uploads.
OAuth login
GitHub and Google callback URLs, client credentials, and trusted origins.
Troubleshooting
Sessions that drop after restart, CORS failures, missing email, and rejected webhooks.
Self-hosting FAQ
What do I need before the first boot?
Docker Engine with Compose v2, a root domain with DNS for the dashboard, the API, and a wildcard for board subdomains, an SMTP relay, and a generated AUTH_ENCRYPTION_KEY. The compose stack supplies PostgreSQL with pgvector and Redis.
Can I use my own PostgreSQL instance?
Yes, as long as it offers the pgvector extension. Migrations run CREATE EXTENSION IF NOT EXISTS vector and add a vector(1536) column to the post table, so the extension has to be available even if you never turn embeddings on.
Do I need Redis?
One server instance rate-limits in memory and runs without Redis. As soon as you run more than one server replica, point REDIS_URL at a shared Redis so the rate-limit counters are shared too.
How do upgrades work?
Back up the database, pull the new images, and run docker compose up -d. The server image applies pending migrations before it starts listening. Pin IMAGE_TAG to an exact release so you decide when to move.
Does self-hosting include the widget and the API?
Yes. The web container serves the dashboard and public boards, and the server container answers the widget endpoints and the Public API on your API_URL. The same repository is the product.
Where do I get help with a deployment?
The self-hosting docs cover the four services, every environment variable, database migrations, SMTP, S3 media, OAuth, and the common failure modes. Bug reports go to the GitHub repository.