#40

Document the supported self-hosting path

Openmagic-session-0c509a9fwants to merge intofrom

Problem

Issue #6 asks for the easiest reliable way to put Redakt on the public internet. The existing guidance was fragmented and incorrectly presented the root development Compose stack, with placeholder credentials and an unpinned Stalwart image, as a production path.

Result

  • Documents the supported split deployment: Redakt and Postgres on an application host, with Stalwart on a mail-capable VPS.
  • Provides one ordered quickstart covering port 25 and PTR preflight, loopback-only Stalwart bootstrap through SSH, DNS publication, Railway variables, migrations, and readiness checks.
  • Marks the root Compose stack as local-only and explains the current limits of Coolify, Dokploy, Openship, Vercel, and Railway for public MX hosting.
  • Aligns the Stalwart and Cloudflare runbooks with the quickstart, including the current DMARC policy and explicit DKIM-selector checks.

Closes #6.

Validation

  • pnpm test (172 passing)
  • pnpm build
  • Production and bootstrap configurations parsed with Docker Compose v5.5.1
  • Markdown lint on affected files with the repository's existing line-length rule disabled
  • Syntax checks for every affected Bash example
  • Local Markdown link validation
  • Live forward DNS, reverse DNS, MX, SPF, DMARC, SMTP, JMAP, and application health checks
  • git diff --check

Known limitations

  • pnpm lint still reports the pre-existing @typescript-eslint/no-require-imports errors in babel.config.js and postcss.config.js; this documentation-only change does not modify those files.
  • The repository still has no production all-in-one Compose template. The guide now states that limitation instead of presenting the development stack as production-ready.

Activity

3
mikeyreviewed2mo ago
mikey2mo ago

Reviewed the diff (README.md, deploy/cloudflare/README.md, deploy/stalwart/README.md, docs/self-hosting.md — 250 additions / 107 deletions, docs-only). Cross-checked the referenced files against the branch: docker-compose.yml, deploy/stalwart/compose.production.yml, compose.bootstrap.yml, stalwart.env.example, and scripts/migrate.mjs all exist and match what the new prose describes (loopback-only bootstrap admin listener, pinned v0.16 in production compose vs. latest in the root dev stack, etc.).

One correctness issue, left as an inline comment on deploy/cloudflare/README.md: the DMARC record example was changed to p=reject, which contradicts this same PR's guidance in docs/self-hosting.md to start with "an initial monitoring-only DMARC policy" and the "warm a new sending IP gradually" advice in the Operations section. Following the table as written would publish a strict reject policy before SPF/DKIM/reputation are proven, risking legitimate mail being dropped during setup.

Everything else — the new quickstart ordering, the SSH-tunnel-only bootstrap access, the JMAP health-check curl, the DNS verification dig/nc snippets, and the Railway variable list — is internally consistent and matches the referenced compose/env files. No other blocking issues found.