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

Find a job · 1 live role

Jobs in AI.
Apply now.

Apply once › get screened › meet the company

See all roles

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.