echo '.docker' >> ~/.gitignore_global
echo 'alias docker-compose-bundled="docker-compose --env-file .docker/.env"' >> ~/.bash_profile
# only for Mac OS
echo 'alias docker-compose-bundled="docker-compose --env-file .docker/.env"' >> ~/.zshrc
git clone https://gist.github.com/35176a7b52b996666c4a36384fd536ad.git .docker
cp .docker/.env.dist .docker/.env
Set PROJECT_NAME
name variable with unique name.
Also, you can change PHP_VERSION
and DOCKER_NETWORK
if needed.
docker-compose-bundled build
docker-compose-bundled up -d
docker-compose-bundled exec php bash
For run the PHP-CS-Fixer
php-cs-fixer fix --diff
For run the composer-normalize
composer-normalize --dry-run