[SERVER-34376] Unable to connect to MongoDB Replica set in Docker container Created: 08/Apr/18 Updated: 08/Apr/18 Resolved: 08/Apr/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nairi Harutyunyan | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | ALL |
| Steps To Reproduce: | 1) docker-compose up , , { "_id": 2, "host": "node3:27017" } ] 5) rs.initiate(config) |
| Participants: |
| Description |
|
Hi I have mongo replica set with 3 servers, I can not connect to server using mongoose(NodeJS) and Mongo Shell, but with Studio 3T I can connect and change data. I have tested the same but in my laptop, not in docker container, all works fine, mongoose(NodeJS) and Mongo Shell working fine. I am using docker compose, I will add all files for reproduce the issue. |
| Comments |
| Comment by Nairi Harutyunyan [ 08/Apr/18 ] |
|
But currently I don't know how I can access to docker network. |
| Comment by Nairi Harutyunyan [ 08/Apr/18 ] |
|
please close the issue) because I don't have access |
| Comment by Nairi Harutyunyan [ 08/Apr/18 ] |
|
nodejs:
|
| Comment by Nairi Harutyunyan [ 08/Apr/18 ] |
|
I have fixed it, actually I need create docker component for nodejs app which will in mongo network. |