Hello everybody, I transfer my question here with the hope someone will be able to help me: https://stackoverflow.com/questions/64591321/connect-a-mongodb-docker-container-running-on-server-to-robo-3t-on-my-computer
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
In order to be able to connect to the MongoDB container from the outside world, you would need to make sure that you’ve exposed the Mongo DB port:
docker run -d --name mongo-container -p 27888:27017 -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=secret mongo
Alternatively, DigitalOcean now offers Managed MonogDB database clusters:
https://www.digitalocean.com/products/managed-databases-mongodb/
This is a great option in case that you are looking for a hassle-free MongoDB solution.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.