Rails 8 Dev Stack
Rails + Postgres + Redis + Sidekiq + Mailpit + pgAdmin, hot reload wired, ready to clone and code.
Rails 8 Dev Stack
A production-ready Docker Compose development environment for Rails 8. Clone the repo, run one command, and you are coding — no manual configuration required.
What's Included
- Rails 8.1 — Latest Rails with Hotwire, Turbo, and Stimulus configured out of the box
- PostgreSQL 16 — Primary database with a named persistent volume
- Redis 7 — Backs Action Cable, Rails cache store, and Sidekiq
- Sidekiq 7 — Background job processing with web UI mounted at
/sidekiq - Mailpit — Local SMTP server that catches all outgoing email; inspect it at port 8025
- pgAdmin 4 — Full-featured Postgres GUI at port 5050
Developer Experience
- Hot reload via Bootsnap + Rails reloader — file changes reflect in the browser without restarting the container
- Pre-configured
database.yml,cable.yml, andsidekiq.yml - App directory bind-mounted so all edits are live immediately
- Health checks on Postgres and Redis — Rails waits until both are ready before starting
- Single
docker compose upstarts the entire stack
What You Get
docker-compose.yml— fully configured multi-service stackDockerfile— lean Ruby 3.4 Alpine development imageGemfilewith Rails 8.1, Sidekiq, Tailwind CSS, and dev/test gems.env.examplewith every variable documentedREADME.md— quickstart guide, service URLs, and common tips
Service URLs
| Service | URL |
|---|---|
| Rails App | http://localhost:3000 |
| Sidekiq Dashboard | http://localhost:3000/sidekiq |
| Mailpit (email inspector) | http://localhost:8025 |
| pgAdmin | http://localhost:5050 |
Requirements
Docker Desktop or Docker Engine with the Compose plugin. No local Ruby, Postgres, or Redis installation needed.