git clone [email protected]:AngCosmin/docker-laravel.git
cd docker-laravel
On Linux/MacOS: docker run --rm -v $(pwd):/app composer install
On Windows in PowerShell: docker run --rm -v ${PWD}:/app composer install
On Windows in CMD: docker run --rm -v %cd%:/app composer install
cp .env.example .env
docker-compose up
docker-compose exec app php artisan key:generate
Enter on http://localhost
Source: DigitalOcean Community