Report this

What is the reason for this report?

Adding a database?

Posted on December 30, 2020

Connected Tutorial(This question is a follow-up to this tutorial):

How To Deploy a Flask App Using Gunicorn to App Platform

How do I add a predefined sqlite database as part of the deployment? Thank you



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.

Hi there,

I would personally not go for SQLite as this will be stored on the Docker container, so the next time you deploy it will be lost as a new container will be started.

I believe that it is better to use a Database component from the App Platform directly.

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.