byjg / docker-easy-haproxy

Discover services and create dynamically the haproxy.cfg based on the labels defined in docker containers or from a simple static Yaml
MIT License
55 stars 12 forks source link

Make the definitions part of the label the second part instead of the end #15

Closed josegonzalez closed 2 years ago

josegonzalez commented 2 years ago

This would make it so definitions scope their rules. Traefik does similar with their "routers" idea: https://doc.traefik.io/traefik/routing/providers/docker/

byjg commented 2 years ago

I have to confess that suggestion is very good. I don't know why I didn't do that before.

Anyways, PR #16 implements that.

byjg commented 2 years ago

All merged. You can docker pull byjg/easy-haproxy:4.0.0. See release notes of the implemented features: https://github.com/byjg/docker-easy-haproxy/releases/tag/4.0.0