By socss
Perhaps add a block storage unit or a droplet?
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!
Hi there,
When deploying applications on DigitalOcean’s App Platform, it’s important to keep in mind that the platform uses ephemeral storage. This means that any data stored directly on the app’s filesystem will be lost whenever the application is redeployed, restarted, or scaled. This includes databases like SQLite that reside directly on the filesystem:
https://docs.digitalocean.com/products/app-platform/how-to/store-data/
Here are the alternatives you could consider to ensure your database persists across deployments:
https://docs.digitalocean.com/products/app-platform/how-to/manage-databases/
If you prefer to continue using SQLite or require more control over your database server, consider deploying your application on a DigitalOcean Droplet instead of the App Platform. Droplets provide persistent storage, and you can also attach additional Block Storage volumes if needed. Block Storage volumes are useful for database storage because they can be resized and managed independently of the Droplet itself. However, remember that managing your own Droplet and database comes with additional overhead, as you’ll need to handle backups, security, and updates yourself.
Although not typically used for database storage, DigitalOcean’s Spaces can be an alternative for storing files and other data that your application needs to persist. This wouldn’t be suitable for SQLite databases but can be useful for storing backups, logs, and other static files:
For your situation, where data persistence and stability are important, and you’re currently using SQLite, transitioning to a Managed Database service is likely the best solution.
Hope that this helps!
Best,
Bobby
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.