msound / localmongo

Local mongo replicaset for development using docker-compose
MIT License
47 stars 26 forks source link

Accessing the container using hostname to connect using MongoDB Compass #5

Open cksachdev opened 3 years ago

cksachdev commented 3 years ago

I am using this on macOS Big Sur. I am trying to connect to the replica set using MongoDB Compass but I am getting the following error: image

Any possible workaround to solve this?

mridul303 commented 3 years ago

@cksachdev It's not ideal but the only solution I found for this is to use the docker IP of the primary container instead of localhost to connect: mongo-compose