This repo contains the processes necessary to build a dynamic nginx container that acts as a load balancer to http backends.
Conceptually, this container is meant to be balance n number of backend http services. While these will typically be other nginx services (e.g. nginx-backend-eg) this is not required.
For example, starting this container to balance n number of apache httpd
containers (e.g.
apache-backend-eg) or a
golang binary that servers and http api.
The container checks every 5 seconds for new services at its serivce key in the StackEngine Service Discovery layer. When it sees a change, it rewrites the haproxy.cfg file and reloads the haproxy service.
For example usage, please see the stack-nginx-lb repo.
MIT