Connect to host mongodb from docker container

后端 未结 2 404
[愿得一人]
[愿得一人] 2020-12-15 18:09

So I want to connect to my mongodb running on my host machine (DO droplet, Ubuntu 16.04). It is running on the default 27017 port on localhost.

I then u

2条回答
  •  一生所求
    2020-12-15 18:34

    change the bindIp from 127.0.0.1 to 0.0.0.0 in /etc/mongod.conf. Then it will work

提交回复
热议问题