This is a complete stack for running Symfony 6.3 into Docker containers using docker-compose tool.
It is composed by 2 containers:
nginx
, acting as the webserver.php
, the PHP-FPM container with the 8.2 version of PHP.
-
😀 Clone this rep.
-
Create the file
./.docker/.env.nginx.local
using./.docker/.env.nginx
as template. The value of the variableNGINX_BACKEND_DOMAIN
is theserver_name
used in NGINX. -
Go inside folder
./docker
and rundocker-compose up -d
to start containers. -
Inside the
php
container, runcomposer install
to install dependencies from/var/www/symfony
folder.
🧹 Keep a modern codebase with PHP Coding Standards Fixer:
composer lint
✅ Run refactors using Rector
composer refacto
⚗️ Run static analysis using PHPStan:
composer test:types
✅ Run unit tests using PHPUnit
composer test:unit
🚀 Run the entire test suite:
composer test