/laravel-docker

Full Laravel production environment for Docker

Primary LanguagePHPMIT LicenseMIT

Laravel Docker

codecov Laravel 8 Laravel 9 Laravel 10

Full Laravel production environment for Docker.

install

Run in your Laravel project:

composer require --dev laravel-fans/docker
php artisan docker:publish

build

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.

screenshots

docker run laravel