pdustdar/dockerize-laravel

Deploy Dockerized Laravel Framework With Nginx.

v0.1.6 2021-09-24 08:02 UTC

This package is auto-updated.

Last update: 2024-04-24 14:01:58 UTC


README

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

Create And Publish docker files and configurations

You can create and publish docker file and setting after install and register provider. run this:

php artisan docker:publish

Start and Stop services

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