Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to containerize a Next.js application using Docker and deploy it to a Virtual Private Server (VPS) in this comprehensive 20-minute tutorial. Begin with an overview of a Next.js example project and understand why hosting with Docker simplifies the deployment process compared to traditional methods. Master the preparation steps required before containerization, then progress through creating a simple Docker configuration for Next.js before advancing to a more robust and production-ready setup. Explore VPS hosting options and discover how to leverage GitHub Container Registry for storing your Docker images. Navigate the process of building Docker images specifically for AMD64 architecture and learn proper image naming and tagging conventions. Set up Docker on your VPS environment and complete the deployment process to successfully run your containerized Next.js application on a remote server. Gain practical experience with modern deployment workflows that combine containerization technology with cloud infrastructure for scalable web application hosting.
Syllabus
00:00 Next.js example overview
01:18 Hosting with Docker is easier than without
01:32 Preparation
02:20 Dockerize Next.js simple example
06:45 Dockerize Next.js better
08:25 VPS
09:07 GitHub container registry
11:02 Build for AMD64
12:50 Change name / tag of image
14:03 Docker on VPS setup
17:58 Dockerized Next.js on VPS!!
Taught by
ByteGrad