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.localusing./.docker/.env.nginxas template. The value of the variableNGINX_BACKEND_DOMAINis theserver_nameused in NGINX. -
Go inside folder
./dockerand rundocker-compose up -dto start containers. -
Inside the
phpcontainer, runcomposer installto install dependencies from/var/www/symfonyfolder.
🧹 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