Basic structure to deploy Docker through a load balancer or reverse proxy
Here are instructions for obtaining a copy of the project up and running on your local machine for development and testing purposes.
-
a Linux Server (VPS)
-
Hardening of Linux Server Ubuntu Example
-
Open Ports
80
an443
-
Don't forget to leave the SSH port open in case you use it.
-
Install Docker (You can use this command:)
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
This is not software that is installed as such, but rather a series of "modules" that will help you build your own infrastructure.
First of all, you need to install a load balancer, the one I recommend is Traefik, for its ease of configuration.
Link to Mount Initial Traefik Container
You can use the following modules that can be added to this load balancer
https://github.com/nasatome/dockapress
It's a project to run WordPress with docker
https://github.com/nasatome/dockpy
is a project to run Docker Projects with Python, (Django, Flask)
https://github.com/nasatome/doockla
Docker + (PHP) Joomla
https://github.com/nasatome/dockavel
Docker + (PHP) Laravel
Future additional notes about how to deploy this on a live system
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- nasatome - Initial work
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
-
Suppose there are 4 types of deployment strategies
- Service per instance
- Multiple services per instance
- Service per container
- Serverless Service
This Project is perfect in union with the other modules, for the second case, where in an economic way you can mount multiple microservices in the same host, making your projects very economic and future scalable.
-
Inspiration: For people who have little knowledge to use micro services with docker, this can be an excellent getting started guide.