Question

How to connect APP Platform to external database?

I have an APP that I have just deployed to the APP Platform. It looks like it runs fine, but I cannot connect to my remote database. In order to connect to the remote database, I need to add the APP’s IP to the security group.

I don’t see how to get the IP address for the APP (I would like to use a Flexible IP with it), so pinged the IP address and added that to the security group. I had no luck with that.

Does anyone have any hints?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @sergiot-ruiz,

Unfortunately, App Platform applications do not have a persistent IP address. More about that here

https://docs.digitalocean.com/products/app-platform/how-to/manage-databases/

Regarding the connection to an external database, there is a similar question asked here:

https://www.digitalocean.com/community/questions/static-ips-whitelisting

The main answer there is:

App Platform apps do not have a static-IPs. We’ve heard requests for static IPs as an add-on feature and are considering it. In the mean time, we recommend using TLS encryption and strong authentication to secure connections to external resources.