A Docker-based installer and runtime for the Symfony web framework, with full HTTP/2, HTTP/3 and HTTPS support.
-
If not already done, install Docker Compose (v2.10+)
-
In order to build fresh images, run
docker compose build --pull --no-cache
-
In order to start up services, run
docker compose up
(the logs will be displayed in the current shell)
-
Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate
-
In order to stop the Docker containers, run
docker compose down --remove-orphans
- Production, development and CI ready
- Installation of extra Docker Compose services with Symfony Flex
- Automatic HTTPS (in dev and in prod!)
- HTTP/2, HTTP/3 and Preload support
- Built-in Mercure hub
- Vulcain support
- Native XDebug integration
- Just 2 services (PHP FPM and Caddy server)
- 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
- Troubleshooting
Symfony Docker is available under the MIT License.
Created by Kévin Dunglas, co-maintained by Maxime Helias and sponsored by Les-Tilleuls.coop.