Next.js Full Stack
Next.js 16 + Postgres + Redis + Prisma + Adminer — a complete full-stack dev environment in one command.
Next.js Full Stack
A batteries-included Docker Compose environment for full-stack Next.js development. App server, database, cache, ORM, and a database GUI wired together and ready to run. No local Node, Postgres, or Redis installation needed.
What's Included
- Next.js 16 — App Router with React Server Components, pre-configured with TypeScript and Tailwind CSS
- PostgreSQL 16 — Primary database with a named persistent volume and health check
- Redis 7 — Ready for caching, sessions, and rate limiting via
ioredis - Prisma ORM — Schema file included, migrations run automatically on first boot
- Adminer — Lightweight Postgres GUI at port 8080; inspect tables, run queries, browse data
Developer Experience
- Source directory bind-mounted — Next.js Fast Refresh works natively inside the container
- Pre-configured
.envwithDATABASE_URL,REDIS_URL, andNEXTAUTH_SECRETdocumented - Prisma Client auto-generated on container start
- Health checks on Postgres and Redis — app waits until both are accepting connections
- Single
docker compose upstarts the entire stack - Run migrations:
docker compose exec app npx prisma migrate dev
What You Get
docker-compose.yml— fully configured multi-service stackDockerfile— Node 22 Alpine with hot-reload dev serverprisma/schema.prisma— starter schema with a User modelentrypoint.sh— generates Prisma Client and runs migrations on boot.env.examplewith every variable documentedREADME.md— quickstart guide, service URLs, and Prisma tips
Service URLs
| Service | URL |
|---|---|
| Next.js App | http://localhost:3000 |
| Adminer (DB GUI) | http://localhost:8080 |
Requirements
Docker Desktop or Docker Engine with the Compose plugin. No local Node.js, PostgreSQL, or Redis installation needed.