So, I ended up writing this little python scripts that wires up the various docker images that I need locally and makes them talk to one another correctly.
ie. pointing my app the docker DB. I have an nginx image load balancer I use to redirect traffic between DEV, docker image, and my debugger depending on the use case.
The thing is… this feels like i’m re-inventing the wheel. I’m sure I’m not the only one that ran into this problem, and was wondering if anyone had any suggestion for a better docker tool I should be using.
Right now everything is DNS based, so I’m simply overriding my /etc/hosts file and modifying the nginx services.conf to route traffic as need be on a case by case basis.
I would love to hear what people are using to control traffic / routing between containers, physical servers and a local machine.