Self-Hosting Next.js on Coolify Behind Cloudflare: The Production Architecture Guide
Most self-hosted Next.js guides stop at docker compose up. Here is the production architecture I use to run Next.js on Coolify and a Linux server behind Cloudflare without breaking ISR, image optimisation, or edge caching.