By fcmatteo
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?
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!
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>
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.