I have created a microservice which is having both consumer and producer for rabbitmq queue. I could run this microservice without any problem in local machine. But when i try to deploy this is docker container , its not able to connect to rabbitmq which in my host machine .
I tried localhost, host machine ip , --add-host , but nothing works for me.
I could ping the host machine ip from container, but telnet is hanging.