# creating application bootstrap
docker run --rm -v $(pwd):/app composer/composer create-project laravel/laravel app 5.4
# installing dependencies (if is needed)
docker run --rm -v $(pwd)/app:/app composer/composer install
Pull from this gist the required files docker-compose.yml, app.dockerfile, etc..
curl -O https://gist.githubusercontent.com/mvlsqz/15403bc1e13a328e884207a490974be6/raw/6c48f83fc074950a5dc5cf1605c8babcd4b02f7d/docker-compose.yml
curl -O https://gist.githubusercontent.com/mvlsqz/15403bc1e13a328e884207a490974be6/raw/6c48f83fc074950a5dc5cf1605c8babcd4b02f7d/app.dockerfile
curl -O https://gist.githubusercontent.com/mvlsqz/15403bc1e13a328e884207a490974be6/raw/6c48f83fc074950a5dc5cf1605c8babcd4b02f7d/web.dockerfile
curl -O https://gist.githubusercontent.com/mvlsqz/15403bc1e13a328e884207a490974be6/raw/6c48f83fc074950a5dc5cf1605c8babcd4b02f7d/vhost.conf
Start all the services, will take some time on the first run
docker-compose up
application key & optimize
docker-compose exec app php artisan key:generate
docker-compose exec app php artisan optimize