This article provides a minimal Docker configuration for running a Next.js 16 application on Node.js 22, backed by MySQL, with phpMyAdmin for database management. The focus is strictly on the Dockerfile and docker-compose.yml needed for local development. Application code and Next.js project creation are intentionally out of scope.
If you already have a Next.js 16 project, you can drop these files into your project root and start the entire stack with a single command.
Prerequisites:
- Docker Desktop
- Git Bash or Command line
Project Structure
Docker Configuration Files for Next.js 16 and MySql
Below are the only two files required for this setup.
Dockerfile (Next.js 16 + Node 22)
docker-compose.yml
Bonus: Shadcn UI Component Finder
If you’re using shadcn/ui in your Next.js projects, I built a small tool that helps you quickly find shadcn UI components and blocks without manually searching through repositories.
👉 Youtube Url
https://youtu.be/OV9Nzlrv6x0
👉 Shadcn Block Finder