-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple route pairs in docker labels #78
Comments
cc @avowkind |
Thanks for looking at this.
|
* support reproxy.N.something labels for docker #78 * lint: suppress false positive * update linter in ci * update readme * add test for failed container parse
yeah, this is the format I've implementing except for one thing - I don't see the need in The N should be in [0:9] range, i.e. reproxy.7.server, reproxy.0.port, and so on. Current labels back-compatible and treated internally as reproxy.0.* Check out the :master image as you have a chance. I have not tested it on the real setups yet but covered with enough unit test, so hopefully, it will work as designed. pls note - this is not limited to different ports only and reporxy.1.* and reproxy.2.* labels may have the same port or even the default one (the first exposed if nothing defined in reproxy.N.port). I have recently witnessed a complex config with a lot of custom routes mapped for a single container and the same port (service) |
actually, I just deployed it with multi-routes to one of my boxes and it worked fine. This is the relevant part of the compose:
|
I'm still waiting for labels |
Not sure what is missing with the current |
Sorry. I'm didn't notice this before. I'll have to check this. |
hi @umputun , please add port/enabled to File provider description, it may be helplfull |
re: #76
In some cases, one container may expose multiple endpoints, for example, public API and some admin API. They can be on different ports and the goal is to allow such functionality to be defined with docker provider (labels?)
I can think of two ways to implement it:
reproxy.1=m.example.com,/api/(.*)./someplace/$1,/ping
. This is harder to read but will minimize the number of labelsboth approaches can be combined too, and the user can choose which one he likes better. The current labels should be supported too as we don't want to break compatibility for no good reason
if anyone has better ideas pls share
The text was updated successfully, but these errors were encountered: