This is a complete stack for running Symfony 6.1 into Docker containers using docker-compose tool with docker-sync library.
It is composed by 4 containers:
nginx, acting as the webserver.php, the PHP-FPM container with the 8.0 version of PHP.dbwhich is the MySQL database container with a MySQL 8.0 image.
docker-compose, https://docs.docker.com/compose/install/
-
😀 Clone this rep.
-
Go inside folder
./dockerand rundocker-compose upto start containers. -
Inside the
phpcontainer, runcomposer installto install dependencies from/var/www/symfonyfolder.
You could change the name, user and password of the database in the env file at the root of the project.
- configure yours x-debug (https://docs.devsense.com/pt/vs/debugging/configuring-xdebug)
- With the docker running just click in run test