connect robomongo to mongoDB docker container

后端 未结 7 1679
耶瑟儿~
耶瑟儿~ 2021-02-02 17:11

I\'m running a NodeJS App with docker-compose. Everything works fine and I can see all my data by connecting to Mongo inside container. But when I connect to RoboMo

7条回答
  •  故里飘歌
    2021-02-02 17:28

    First log in with ssh Login details

    1. ssh -i yourpemfile.pem username@ipaddress

    2. Check running container id for MongoDB

      docker ps -a

    3. then check the mongo container id

    docker inspect container_id

    1. Then open robo3t

    create new connection and add container id use ssh login details to connect to mongodb

提交回复
热议问题