App redeploy wipes database

I have an App with a Strapi instance and a database connected to it. Everytime I redeploy aka push to the master branch of the Strapi repo, it redeploys the whole app including the database. Obviously this is not intended. How can I exclude the database from the redeploy process?

Submit an answer
Answer a question...

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.

Bobby Iliev
Site Moderator
Site Moderator badge
March 10, 2022


The DigitalOcean App Platform storage is ephemeral, meaning that anything stored on the local storage would be lost after a redeployment.

This is why you should not run your database on the App Platform itself but use a Managed Database:

For more information on the App storage, make sure to check out the documentation here:

Hope that this helps!