A Docker-based installer and runtime for the Symfony web framework
- If not already done, install Docker Compose (v2.10+)
- Run
docker compose build --no-cacheto build fresh images - Run
docker compose up --pull -d --waitto start the project - Open
https://localhostin your favorite web browser and accept the auto-generated TLS certificate - Run
docker compose down --remove-orphansto stop the Docker containers.
The default development image is shipped with Xdebug, a popular debugger and profiler for PHP.
Because it has a significant performance overhead, the step-by-step debugger is disabled by default.
It can be enabled by setting the XDEBUG_MODE environment variable to debug.
On Linux and Mac:
XDEBUG_MODE=coverage,debug docker compose up -d --build
Symfony Docker is available under the MIT License.