# Setup your development environment ## Run all the follow commands into your project directory ```bash # 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.. ```bash curl -O https://gist.github.com/mvlsqz/15403bc1e13a328e884207a490974be6/raw/6c48f83fc074950a5dc5cf1605c8babcd4b02f7d/docker-compose.yml curl -O https://gist.github.com/mvlsqz/15403bc1e13a328e884207a490974be6/raw/6c48f83fc074950a5dc5cf1605c8babcd4b02f7d/app.dockerfile curl -O https://gist.github.com/mvlsqz/15403bc1e13a328e884207a490974be6/raw/6c48f83fc074950a5dc5cf1605c8babcd4b02f7d/web.dockerfile curl -O https://gist.github.com/mvlsqz/15403bc1e13a328e884207a490974be6/raw/6c48f83fc074950a5dc5cf1605c8babcd4b02f7d/vhost.conf ``` Start all the services, will take some time on the first run ```bash docker-compose up ``` application key & optimize ```bash docker-compose exec app php artisan key:generate docker-compose exec app php artisan optimize ``` ## go to http://localhost:8080 and have fun!