Configure mongodb to be remotely accessible

Hi,
I currently have Tutor deployed through AWS and I’m trying to access MongoDB programmatically through R.
Can someone guide me on how to configure Tutor for this?

I found this tutorial but I’m a bit lost as the MongoDB in Tutor is containerised.

You will need to open the ports on the MongoDB container to allow access from outside the container, think of it as similar to the third step[1] in the guide you linked.

I have mentioned how to do this for Caddy on this topic but the basics are the same for MongoDB: Caddy Metrics (Port 2019) - Tutor - Overhang.IO

Be aware that this is a security risk and you should not do this on a production machine.


    1. Open port 27017 on your EC2 instance
    ↩︎