1

How to connect Flask app docker container to local mongoDB (not docker container) ? is it posibble? so hard to find tutorial to do this. I already read docker hub mongo but is not clear for me cause I'm new with docker. I try to create docker image mongo but is not connected to my local mongodb host cause running on container. please help me to understand.

this is my connection code I already using my host IP:

client = MongoClient("10.0.75.1", 27017)
db = client['RepositoryUIN']
Organis
  • 7,243
  • 2
  • 12
  • 14

0 Answers0