In this article i will demonstrate step by step how to dockerize your micro-services project withLumem and Laravel alongside with nginx as…
In this article, I will provide a step-by-step demonstration of the process of dockerizing your micro-services project with
Laravel alongside with
nginx as a web server and
mysql. This is the first part of a three article series.
This initial part will allow us to setup the foundation of our project, dockerize its main components and to establish the basics in order to make a fluid communication between all components.
Below is the Github repository related to this project:
Lumen -v 6.x: It is the perfect solution for building
Laravelbased micro-services and blazing fast APIs. It is one of the fastest micro-frameworks available.
Laravel -v 6.x: Laravel is a web application framework with expressive, elegant syntax.
Nginx:It is a web-server that accelerates content and application delivery, improves security, facilitates availability and scalability for the busiest web sites on the Internet.
php-7.4alongside with the
mysql 8.0and take advantage of it’s blazing speed.
->$ mkdir microservices-workspace && cd microservices-workspace
->$ mkdir apps
Now inside our workspace we create the
docker folder and our two components
dipenser folders inside the
Curatoris the Laravel app that will contain the views and the core logic, alongside with the migrations and the models.
Dispenseris the Lumen app that will behave as the microservice that will dispense/answer the calls coming from the
->$ composer create-project --prefer-dist laravel/laravel apps/curator
->$ omposer create-project --prefer-dist laravel/lumen apps/dispenser
We will create a docker folder that we will take care of later:
->$ mkdir docker
Finally, we need to create a
docker-compose file at the root of our project:
->$ touch docker-compose.yml
Now that our setup is done, and the foundations for a scalable architecture is ready, we can move forward and think about the design of…
Compare ScaleGrid MySQL vs. DigitalOcean Managed Databases - See which offers the best MySQL throughput, latency, and pricing on DigitalOcean across workloads.
Learn how to create a Docker setup for Laravel application with Nginx and MySQL
In this article i will let you know to delete multiple rows through checkbox using ajax in laravel and before delete we will give a confirmation message.
Deploying Your Laravel App on Docker, With NGINX and MySQL ... The original post was also uploaded here: Laravel Application on Docker.