A docker multicontainer with nginx, postgres, redis and a preconfigured symfony project.
-
Build/run containers with (with and without detached mode)
docker-compose build docker-compose up -d
-
Composer install
docker exec php-fpm composer --no-interaction install
-
Enter Symfony container
docker-compose exec php sh # OR docker exec -it php-fpm sh
-
Run whatever you want (E.g.
composer require
)