-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
The problem with the current setup is that you cannot have multiple instances of Magento running at the same time unless each of the services run on a separate port. This is not ideal and confusing.
Ideally, we want an Nginx load balancer to sit in front of everything. For example:
dm start
will start this Nginx load balancer
We then need to "register" sites with the load balancer. For example dm register ~/Sites/mysite
will register the site with the load balancer, as well as setup SSL. I was previously looking into and working with https://github.com/nginx-proxy/nginx-proxy -- this setup seemed to work fine for NodeJS apps, but it buckled around Magento's complex setup and when it came to running SSL.
It's possible this central nginx load balancer could become a project entirely on its own, as this is a common problem with all docker projects, not just docker-magento
. We could use Kubernetes, but I'd like to keep things simple in local dev. I think a simple proxy which allows users to register and deregister sites with the load balancer, and automatically sets up SSL certs for mac & linux would be sufficient.