Skip to content

Create central nginx proxy load balancer #243

@markshust

Description

@markshust

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions