Articles in this section

Accessing MongoDB configuration and database on Upsun

To connect to MongoDB, or any other service, from your local system, first open an SSH tunnel using the upsun tunnel:open cli command. That will establish a secure connection to your environment from your local computer and expose local ports you can connect to.

You can then enter the credentials into your local tool, be it MongoDB Compass or otherwise. The host will be localhost, the port will be one of the 30xxx ports reported by tunnel:open, and the user and password can be obtained by running upsun relationships.

When you are finished with your connection, close the connection via upsun tunnel:close.

See the documentation for more details.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.