I am following this guide and got to setting up postgres and creating a database for my app. I am at the step “Fill in Application Data”, where I have a host and a port for my app’s db. Now I want to connect to my database from my local machine using pgadmin, but it seems I am unable to connect using the information that I get from calling dokku postgresql:info <appname>: I get the error “Server doesn’t listen.” I tried following the directions here but it seems like those settings are for the main postgres app and not for my specific database. How can I enable remote access for my specific database?
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!
Generally this can be done by restricting the user account you are using to connect to not have CONNECT permissions to other databases. It sounds like you have everything else set up correctly.
There is some more detail on a couple different ways to restrict users to a single DB here.
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.