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!
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
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:
Here are the alternatives you could consider to ensure your database persists across deployments:
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