How to allow remote access to RethinkDB?

Hi, I have an app in NodeJS using Dokku that uses RethinkDB. I want to access that database from an app in my computer but I don’t know how to do that. What address should I use as host? And how can I enable remote access without exposing the database to possibles attacks?

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The most secure way to do that would be using an SSH Tunnel to get access to the RethinkDB dashboard.

Take a look at this tutorial: How To Set Up SSH Tunneling on a VPS. I believe RethinkDB uses port 8080 for its dashboard.

How are you using RethinkDB with Dokku? Are you using dokku-rethinkdb-plugin? If so, you can set the port that RethinkDB will be available at when you first bind it to your app.

dokku rethinkdb:bind-cluster <app> [host port]

If you do not set [host port], a random port will be be used. You can find this port with:

dokku rethinkdb:info <app>