Nuxt 4 Dev Stack
Nuxt 4 + Postgres + Redis + Adminer. Nitro server config pre-set. Environment variable handling for dev and production documented.
Nuxt 4 Dev Stack
Nuxt 4 with a full backend stack out of the box. Postgres, Redis, and Adminer are pre-wired. Nitro server routes are ready to write, and environment variable handling between dev and production is documented so you don't have to figure it out from scratch.
What's Included
- Nuxt 4 with Vite dev server and HMR
- Nitro server routes pre-configured — write
server/api/endpoints immediately - Postgres 16 for persistent data
- Redis 7 for server-side caching or session storage
- Adminer for visual DB management
Developer Experience
- Nuxt starts with
nuxi dev --hostso HMR reaches your browser over localhost useRuntimeConfig()example in the starter route — public and private env vars handled correctlyDATABASE_URLandREDIS_URLavailable in Nitro server context viaruntimeConfig- Node modules cached in a named volume to avoid re-installing on every restart
What You Get
docker-compose.yml— all four servicesDockerfile— dev stage (nuxi dev) and production stage (nuxi build + node server)nuxt.config.ts— runtimeConfig with database and Redis URLs pre-wiredserver/api/health.get.ts— starter server route that pings Postgres and Redis.env.example,.gitignore,README.md
Service URLs
- Nuxt:
http://localhost:3000 - Adminer:
http://localhost:8081 - Postgres:
localhost:5432 - Redis:
localhost:6379