connect robomongo to mongoDB docker container

后端 未结 7 1667
耶瑟儿~
耶瑟儿~ 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:41

    The easiest way is to enable forwarding the Mongo Container itself, here's how my docker-compose looks like.

    mongo:
      image: mongo
      restart: always
      ports:
        - 27017:27017
    

提交回复
热议问题