Closed josegonzalez closed 1 year ago
I added a fix here
Instead of use the container/service name, which requires being in the same network, I get the IP. I need to run more tests with this solution.
Turns out, the solution wasn't simply get the container's IP Addresses.
Containers and services must share the same network as EasyHAProxy is. This PR will connect the container to the EasyHAProxy network, if the container is not previously connected.
Neat. Looking forward to it landing in a release :)
Ah one note: both containers are in the bridge
network, so as long as that works as a test-case, then Dokku should be fine to use this :)
The issue with network was fixed in the version 4.3.0.
After a bit of testing, it looks like if the containers aren't both in a custom network, they can't route to each other because the routing happens via the assumed network alias.
For the default bridge network:
I think in this case, we want the internal ip address if the container is on the bridge network. Maybe we can have a "shadow" label that gets injected into the labels here and then pick it off later when we set the upstreams here?