A Docker-based installer and runtime for the Laravel web framework, with FrankenPHP and Caddy inside!
- If not already done, install Docker Compose (v2.10+)
- Clone this project without .git :
git clone --depth=1 https://github.com/fouteox/laravel-frankenphp.git && cd laravel-frankenphp && rm -rf .git
- Run
docker compose build --no-cache
to build fresh images - Run
docker compose up --pull always -d --wait
to start the project - Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate - Run
docker compose down --remove-orphans
to stop the Docker containers.
- Production, development and CI ready
- Just 1 service by default
- Blazing-fast performance thanks to the worker mode of FrankenPHP (automatically enabled in prod mode)
- Installation of extra Docker Compose services
- Automatic HTTPS (in dev and prod)
- HTTP/3 and Early Hints support
- Native XDebug integration
- Super-readable configuration
Enjoy!
- Build options
- Using Symfony Docker with an existing project
- Support for extra services
- Deploying in production
- Debugging with Xdebug
- TLS Certificates
- Using a Makefile
- Using Vite
- Troubleshooting
- Updating the template
Laravel Docker is available under the MIT License.
Original repository for Symfony created by Kévin Dunglas.