Back to Templates
Docker Compose

Docker Compose Stack with Postgres, Redis, Nginx & Tools

Standard Postgres + Redis + Nginx stack

terminal
npx setupkaro init my-stack --template docker-compose
Zero installNo telemetryMIT License

What's Included

  • Postgres 16 with health checks and init scripts
  • Redis 7 with persistence
  • Nginx reverse proxy with SSL-ready config
  • Adminer (database UI) — single file, no config
  • Mailpit (email testing) — SMTP + web UI
  • Watchtower for automatic container updates
  • Named volumes for data persistence
  • Custom bridge network with service discovery
  • Generated README with service URLs and env vars

Generated Folder Structure

nginx/
nginx.conf
conf.d/
postgres/
init.sql
.github/workflows/ci.yml
docker-compose.yml
.env.example
README.md

Quick Start Commands

Generate Project

terminal
npx setupkaro init my-stack --template docker-compose

Next Steps

cd my-app
docker compose up -d

Frequently Asked Questions

Is this for a specific application framework?
No — it's a generic infrastructure stack. Use it as a base for any project needing Postgres, Redis, Nginx.
Does it include SSL/TLS certificates?
Nginx config is SSL-ready. Add certs to nginx/conf.d/ and update docker-compose.yml for production.
Can I add my app service to this stack?
Yes — add your service to docker-compose.yml and connect to the shared network. The README documents this.
What about production vs development?
The stack works for both. For production, remove Adminer/Mailpit, enable Watchtower, and use external secrets.

Generate Another Template

React + TypeScript

Vite + React + TS with Tailwind and React Router

terminal
npx setupkaro init my-app --template react-ts

Replace my-app with your project name.

Ready to generate your Docker Compose project?

One command. Production-ready. Start building in seconds.

terminal
npx setupkaro init my-stack --template docker-compose