Ensure that you have docker
and docker-compose
- Build docker images
docker-compose build
- Fetch dependencies
docker-compose run --rm web composer install
. - Create DB
docker-compose run --rm web php bin/console doctrine:schema:create
. - Set Messenger
docker-compose run --rm web php bin/console messenger:setup-transports
. - Run containers & services
docker-compose up -d
.
docker-compose run --rm web php bin/console | grep user:
docker-compose run --rm web php bin/phpunit
#Tips & tricks
It's more handy to run command inside docker container, to go in run:
docker-compose exec web bash