Dockerize Next.js & Deploy To VPS (SSL / HTTPS, CDN Cloudflare, Caddy, Custom Domain, Hostinger)

From the creator

πŸ‘‰ Hostinger VPS (use code BYTEGRAD): https://hostinger.com/bytegrad (sponsored by Hostinger & ByteGrad gets commission) This is a good default deploy stack imo. πŸ‘‰ React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). πŸ‘‰ Kinde $50 credit for auth and more https://kinde.com/r?kinde_ref=e95bc6f8f17eda7c πŸ‘‰ Work with me: support@bytegrad.com πŸ‘‰ React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs πŸ‘‰ Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript πŸ‘‰ Professional CSS Course: https://bytegrad.com/courses/professional-css πŸ‘‰ Web development roadmap: https://email.bytegrad.com πŸ‘‰ Email newsletter (BIG update soon): https://email.bytegrad.com πŸ‘‰ Discord: all my courses have a private Discord ⏱️ Timestamps: 00:00 Intro 03:15 Next config: output standalone 03:52 AGENTS.md 04:58 Create Dockerfile with AI 06:30 Dockerfile from Next.js docs 07:51 Docker build (local test) 09:45 Docker build (for VPS) 10:38 Push to GitHub container registry (ghcr.io) 12:13 Setup VPS (Hostinger) 17:27 Pull Docker image onto VPS 18:39 Run Next.js app on VPS 19:51 Caddy 22:36 Custom domain 23:21 Caddy (continued) with HTTPS 25:53 Cloudflare CDN #webdevelopment #reactjs #nextjs Note that these videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. ByteGrad and any of its affiliated people are not responsible for mistakes in code. This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 and KRS-number: 0001125554

Stop watching Β· start building
Matched to Build AI Apps

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional Β£25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

β—† Fri 13 Nov 2026 β—† KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.