Simulacrum

Docker

Self-host Simulacrum-generated Next.js apps with multi-stage Dockerfiles and production env files.

Dockerfile

Use a multi-stage build: install dependencies, run next build, copy standalone output if enabled, and run as a non-root user.

Compose

Pair the web image with Postgres or Redis as needed. Mount secrets via compose env_file or your orchestrator.

Health checks

Expose /api/health or reuse a lightweight route for load balancer probes.

Do not bake secrets into images. Inject at runtime.