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