I want to connect to my mongodb running on my localhost machine (dockerhost) from inside a docker container. For that I have to allow connections other than localhost. Unfortunetly when using --bind_ip 172.17.0.X mongod wont start, as also mentioned here:
https://www.mongodb.com/community/forums/t/mongodb-assigning-docker-gateway-to-mongo-conf/188768
It works with bind_ip_all, but that exposes the API completly, which I dont want for obvious security issues. Does anyone know, how I can expose it localhost + docker only?
Thanks for your help