Full Laravel production environment for Docker.
Run in your Laravel project:
composer require --dev laravel-fans/docker
php artisan docker:publish
Then you will find Dockerfile
in your project, so you can build:
docker build -t laravel-demo .
docker run -it laravel-demo
docker run -p 8000:80 -e "APP_ENV=local" -e "DB_CONNECTION=sqlite" \
-e "APP_KEY=base64:L+3avOYCfuq8nnDpHs74+5Et3sx27TssucHQIyqfpDY=" \
-it laravel-demo
Feel free to change the Dockerfile
.