Laravel 13 Dev Stack
Laravel + MySQL + Redis + Horizon + Mailpit + phpMyAdmin, queue workers pre-configured
Laravel 13 Dev Stack
A complete Docker Compose development environment for Laravel 13. One command brings up the full stack — app server, database, cache, queue workers, email catcher, and a database GUI — all pre-wired and ready to code.
What's Included
- Laravel 13 — Fresh install with
.envpre-configured for all services - MySQL 8.4 — Primary database with persistent volume and health check
- Redis 7 — Backs the cache store, session driver, and queue
- Laravel Horizon — Queue worker dashboard at
/horizonwith supervisor-managed workers - Mailpit — Catches all outgoing email during development; inspect it at port 8025
- phpMyAdmin — Full-featured MySQL GUI at port 8080
Developer Experience
- App directory bind-mounted — edit files locally, changes are live instantly
- Pre-configured
.env,queue.php,cache.php, andhorizon.php - Health checks on MySQL and Redis — Laravel waits until both are ready before starting
- Horizon workers start automatically alongside the app container
- Artisan commands run with
docker compose exec app php artisan ... - Single
docker compose upstarts the entire stack
What You Get
docker-compose.yml— fully configured multi-service stackDockerfile— PHP 8.4 FPM Alpine image with all required extensionsentrypoint.sh— runs migrations, seeds, and starts Horizon on first boot.env.examplewith every variable documentedREADME.md— quickstart guide, service URLs, and common tips
Service URLs
| Service | URL |
|---|---|
| Laravel App | http://localhost:8000 |
| Horizon Dashboard | http://localhost:8000/horizon |
| Mailpit (email inspector) | http://localhost:8025 |
| phpMyAdmin | http://localhost:8080 |
Requirements
Docker Desktop or Docker Engine with the Compose plugin. No local PHP, MySQL, or Redis installation needed.