#40
Document the supported self-hosting path
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 lintstill reports the pre-existing@typescript-eslint/no-require-importserrors inbabel.config.jsandpostcss.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.
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, andscripts/migrate.mjsall exist and match what the new prose describes (loopback-only bootstrap admin listener, pinnedv0.16in production compose vs.latestin the root dev stack, etc.).One correctness issue, left as an inline comment on
deploy/cloudflare/README.md: the DMARC record example was changed top=reject, which contradicts this same PR's guidance indocs/self-hosting.mdto 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/ncsnippets, and the Railway variable list — is internally consistent and matches the referenced compose/env files. No other blocking issues found.