Self-hosting and Docker
FakeProd runs cleanly in Node.js 24+ for local development or behind Nginx in Coolify and Docker Compose across all hostnames.
Compose architecture (compose.yaml)
Production deployment separates static surfaces from the Node runtime while keeping every service on one Compose stack:
| Service / Hostname | What serves it |
|---|---|
fakeprod.com (web, port 8080) | Static files from site/public/; only POST /contact proxies to api:4000. |
docs.fakeprod.com (web, port 8080) | Static pre-built documentation from site/docs/public/. |
app.fakeprod.com & hireprod.com | Proxied by web Nginx to api:4000 (REST, React SPA, and /ws/ terminal sockets). |
Local development vs. Coolify
compose.yamlpublishes no host ports — Coolify’s TLS reverse proxy routes directly over the internal Docker network.compose.override.yamlbinds127.0.0.1:8080:8080(Nginx edge) and127.0.0.1:4000:4000(direct API) automatically when running locally.
Sandbox driver selection & mail configuration
SANDBOX_DRIVER=local # Zero-dependency POSIX sandbox & virtual HTTP engine (default)
SANDBOX_DRIVER=docker # Per-session container runner via DOCKER_SOCKET
SANDBOX_DRIVER=vm # MicroVM hook driver for custom Firecracker infrastructure
# Contact form delivery via Resend (leave blank in dev to store only in SQLite)
RESEND_API_KEY=re_...
CONTACT_FROM=FakeProd <[email protected]>
[email protected]