A Docker environment for developing Laravel applications.
docker-compose run --rm composer create-project --prefer-dist laravel/laravel .
After download the sources, edit the .env
file:
DB_HOST=db
DB_DATABASE=project
DB_USERNAME=project
DB_PASSWORD=project
sudo ./bin/install -b
docker-compose up server
docker-compose run --rm php artisan
docker-compose run --rm phpcs
docker-compose run --rm yarn
docker-compose run --rm yarn watch