I am trying to find the best way to connect to MongoDB when using the App Platform. I didn’t realize at first that it didn’t have a static IP so I looked around. Digital Ocean has Managed Databases so I went to check that out and chose MongoDB, but my App doesn’t show in the lost of Trusted Sources, only droplets. It says App right in the description “Search for Droplets, Kubernetes clusters, Apps and tags, or enter a specific IP”, although they are not supported. So I went to the Apps settings and tried to add a Managed Database as a component and only PostgreSQL is available, which is one of the 4 they support on the regular Managed Databases. I need MongoDB. It is seeming like I need to make droplets for my app and server just to connect to MongoDB. Why do they make this so hard? No static IP, and no way to add an App as a trusted source within the same platform? What should I do here, find a different service? The App Platform having everything in one place is amazing, I wish it would work.
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!
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!