This configuration allows you quickly install fresh Symfony installation using Docker with a few simple commands.
Make sure you have correctly installed Docker and Docker Compose.
Clone this repository, go into main folder and run:
docker-compose up -d
If you familiar with docker - you know what to do. If not - just learn :)
Run the command, just copy/past:
docker exec -u project -i symfony-test-php symfony new project --version="6.2.*" --webapp
Congratulations! Now you have installed Symfony with docker.
If you have any problems with it - please do NOT contact me. Never.
- Symfony code is in
project
folder. - Symfony Console :
docker exec -u project -i symfony-test-php project/bin/console
. - Composer :
docker exec -u project -i symfony-test-php composer -d project
. - If you want to use Xdebug and you are using Docker Desktop -> change
xdebug.client_host
atdocker/config/php/override-php.ini