Docker Community Forums

Share and learn in the Docker community.

Debugging in compose

dns

(Danielwilson654) #1

Hello all,

I am running a set of micro-services in compose on a developer machine. The containers are all on the default network with the nifty DNS for service discovery. This is awesome for many reasons but it makes debugging a specific micro-service a real pain.

Lets say I want to debug App1 on the host. I would like the service discovery to point app2 app3 and so on to the host instead of pointing to app1.

I did spend some time trying to figure out how to do this, I thought perhaps I could create a custom network and use the --dns flag to somehow route traffic to the host when the service wasn’t available.

In any case, I thought my solution was way too complicated. Any Ideas?


(Danielwilson654) #2

If no ideas, where I can start looking to find some?