docker compose build --pull --no-cache
docker compose up --wait docker exec -it webt_25-26_06-core-php-1 bash
git config --global --add safe.directory /app
composer installTo stop
docker compose down --remove-orphanscomposer require symfony/maker-bundlephp bin/console make:controller- -> erstellt automatisch Controller und Twig template
php bin/console make:entity
composer create-project syfony/skeleton NAME- -> alle wichtigen dinge für webapp werden installiert
composer req twigcomposer req symfony/orm-packcomposer req make
A Docker-based installer and runtime for the Symfony web framework, with FrankenPHP and Caddy inside!
- If not already done, install Docker Compose (v2.10+)
- Run
docker compose build --pull --no-cacheto build fresh images - Run
docker compose up --waitto set up and start a fresh Symfony 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.
- Production, development and CI ready
- Just 1 service by default
- Blazing-fast performance thanks to the worker mode of FrankenPHP
- Installation of extra Docker Compose services with Symfony Flex
- Automatic HTTPS (in dev and prod)
- HTTP/3 and Early Hints support
- Real-time messaging thanks to a built-in Mercure hub
- Vulcain support
- Native XDebug integration
- Super-readable configuration
Enjoy!
- Options available
- Using Symfony Docker with an existing project
- Support for extra services
- Deploying in production
- Debugging with Xdebug
- TLS Certificates
- Using MySQL instead of PostgreSQL
- Using Alpine Linux instead of Debian
- Using a Makefile
- Updating the template
- 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.