FreedomBen / dory

Your development proxy for docker
MIT License
156 stars 24 forks source link

Create loopback aliases for inter-container communication #62

Open jonscheiding opened 1 year ago

jonscheiding commented 1 year ago

I've used Dory on a Mac for awhile, and to level up its usefulness, I've configured it to respond to DNS queries with a private IP address, and configured said address as an alias for the loopback interface. This allows containers to communicate with each other - even if they're on a bridge network - using the same names that I use to talk to them from the host, which can simplify a lot of situations.

I thought it might be nice to have Dory handle this itself, it seems within the scope of what a development proxy would do.

If interested in this PR I can look into how to support it on Linux.

(Also included is a configuration option to keep the containers running across Docker/computer restarts)

jonscheiding commented 1 year ago

@FreedomBen 👋 any interest in this change?