How can I connect MongoDb Charts to my local MongoDb server?

93 views
Skip to first unread message

james...@gmail.com

unread,
Nov 12, 2018, 6:07:32 AM11/12/18
to mongodb-user
Hi all,
I have difficulties to connect MongoDb Charts to datasource. I have MongoDb server in local.
How can I connect it?

Thanks,
James

Wan Bachtiar

unread,
Nov 15, 2018, 2:02:09 AM11/15/18
to mongodb-user

How can I connect it?

Hi James,

If the database is running on the same host as the Charts Docker container but not in Docker container, depending on your Docker version you may try:

For Docker versions 18.03 and later:

  • For Windows and macOS, use mongodb://host.docker.internal.
  • For Linux, use the IP address of the docker0 interface. Normally, this address is 172.17.0.1.

For Docker versions 17.06 up to but not including 18.03:

  • For Windows, use mongodb://docker.for.win.localhost.
  • For macOS, use mongodb://docker.for.mac.localhost.
  • For Linux, use the IP address of the docker0 interface. Normally, this address is 172.17.0.1.

See also Test connection to the Charts metadata database

If you still have a difficulty in connecting Charts to a datasource, could you please provide:

  • MongoDB Charts version
  • MongoDB server version
  • Docker version
  • Operating System and version
  • MongoDB URI that you’ve tried
  • Any error message that you’re receiving

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages