-
Notifications
You must be signed in to change notification settings - Fork 177
Adding Adittional Backends #99
Conversation
|
@tifayuki can you give me any feedback on this? Thanks in advance |
|
Sorry for the late response. I think we can do this similar to
What do you think? |
|
@tifayuki Sounds really good. I'll do these two changes in the next couple of days
|
|
This looks awesome |
|
@tifayuki Done! An example of the behaviour |
|
+1 |
|
This is nice |
|
|
|
This would be very useful!! I hope it gets merged soon :) ( @matiasdecarli , is this available on docker hub by any chance so we can already start using your fork?) Also, one more question, does this work only to add an additional backend to an existing service, or can I create a Backend/Frontend pair for a service which is completely outside of my docker environment? I would like to move my HAProxy into a dockerized infrastructure, but not move all of the services in... Some are already in the docker structure, others like DB, arent, so I basically want to configure a balancing/proxying configuration within the docker-haproxy instance. Is this possible in your branch? |
|
Hi @RVN-BR Yes, this is available on my personal Docker Hub account if you wanna start testing. Any feedback is welcome Regarding the "creating extra frontends" thing... I can't see the benefit of doing that, other than having some services running in ports different than Let me know if I can help you with anything else |
|
Hi @matiasdecarli thanks for the explanation... Like I said, my use case does depend on having other services, on other ports, and even other protocols routed into a containerized haproxy instance and proxied out to another service (i.e. Redis, DB, etc). I had initially thought this was what your pull was about (I didnt realize in my head that you were adding backends to EXISTING services, I thought wrongly it was backends and frontends, but it was my mistake)... Unforuntately I dont have a use for your branch at this moment :( I'll probably need to deploy some other haproxy container image or even just roll out my own (which I kinda didnt wanna do), but we'll see... :) Thanks for responding! |
|
@tifayuki can we have this merged? |
|
@matiasdecarli |
This is a PR to add customs backends
The idea behind this is to add the possibility to segment some routes and send them to a different host outside Docker Cloud
For example
Additionally I've created a new flag called
FORCE_DEFAULT_BACKENDthat could disable the autodefault_backendfor cases like the example aboveAny suggestion will be greatly appreciated