Easy Deploy Dockerized Laravel App With Nginx (Production).
Installation using Composer
In your terminal application move to the root directory of your laravel project using the cd
command and require the project as a dependency using composer.
composer require pdustdar/dockerize-laravel
And run this for register commends:
php artisan vendor:publish --provider=Pdustdar\DockerizedLaravel\DockerizeServiceProvider
You can create and publish docker file and setting after install and register provider. run this:
php artisan docker:publish
After creating and publishing the docker files, you can run the services by:
php artisan docker:up
And to stop the service:
php artisan docker:stop