Contents

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 / HostnameWhat 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.comProxied by web Nginx to api:4000 (REST, React SPA, and /ws/ terminal sockets).

Local development vs. Coolify

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]