Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

The BEST Next.js Setup - Next.js + Postgres + Docker for Development and Production

ByteGrad via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to set up a complete Next.js development and production environment using Docker and PostgreSQL in this comprehensive 23-minute tutorial. Master the fundamentals of containerizing Next.js applications starting with the docker init command, then explore Docker Compose watch for hot reload functionality during development. Discover how to integrate PostgreSQL into your Docker setup for database management and configure Prisma as your ORM solution. Navigate through essential debugging techniques for Docker containers and transition seamlessly from development to production environments. Follow along as the tutorial demonstrates deploying to Vercel while maintaining your Dockerized database setup, including proper handling of database migrations. Gain practical experience with Docker Scout for container security insights and understand the complete workflow from local development through production deployment, creating a robust foundation for modern full-stack Next.js applications.

Syllabus

00:00 Intro
01:13 Quick example of Dockerizing Next.js for local development
01:31 docker init
03:04 Docker compose watch hot reload!
03:55 Docker Scout
04:54 Postgres development setup with Docker
06:39 Prisma setup
11:53 Docker debug
13:05 Production environment
13:29 Vercel setup
18:54 Database migrations
22:45 Docker + Next.js + Postgres final overview

Taught by

ByteGrad

Reviews

Start your review of The BEST Next.js Setup - Next.js + Postgres + Docker for Development and Production

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.