Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6471

MongoDB Compass not showing right databases on localhost [closed]

$
0
0

I'm on windows 11. MongoDB compass is installed on Windows. I have my mongodb on Ubuntu using wsl. I started a docker container using the following docker-compose file below and after starting the docker container I'm able to use mongosh in the terminal and see my dbs in linux. But when I use Compass I can't see the right databases (I'm connecting to localhost:27017. This is the first time that I am using wsl and docker but any help is appreciated!

docker-composeservices:  mongo:    container_name: mongo    image: mongo:7.0.9    ports:      - 27017:27017    environment:      - MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}      - MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASS}    volumes:    - /mongo/db:/data/db

Viewing all articles
Browse latest Browse all 6471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>