Databases and storage
The solution to persistent data storage is to usually connect your Fly App to a separate database or object store. If you need hardware-local disk storage on your Machines—for example, if your Fly App is a database or if you want to use LiteFS—then you can use Fly Volumes.
Fly Volumes - Disk storage
The Fly Machines in your app provide ephemeral storage, so you get a blank slate on every startup. For persistent storage on Fly.io, use Fly Volumes. You can attach volumes on an app directly, or run a separate database app with volume storage and connect an app to that.
- Fly Volumes: A Fly Volume is a slice of NVMe disk storage attached to the server that hosts your Machine. Read the Fly Volumes overview to find out if volumes are the best solution for your use case.
Object storage services
Object storage service from our extension partners.
- Tigris Global Object Storage - Tigris is a globally distributed S3-compatible object storage service on Fly.io infrastructure.
Managed database services
Managed database services from our extension partners.
Supabase Postgres (public alpha) - Supabase Postgres is a full-featured and fully-managed Postgres database on Fly.io infrastructure.
Upstash for Redis - Redis is an in-memory database commonly used for caching. A managed service by Upstash.
Fly.io databases
These are not managed services; you deploy and manage them yourself as Fly Apps.
Fly Postgres - Our Postgres app provides a PostgreSQL database with some tools to make it easier to manage yourself. When you deploy an App on Fly.io, we give you the option to launch a Fly Postgres App and attach it to your App.
LiteFS for SQLite - SQLite is a very lightweight file-based database. LiteFS is a distributed file system that transparently replicates SQLite databases. You deploy it and you manage it.
Other database and storage options
Examples to help you get started with other popular storage options.
MySQL and MariaDB - MySQL is a popular relational database. MariaDB is a community fork of MySQL and is compatible with MySQL.
EdgeDB - EdgeDB is a graph-relational database that runs on top of Postgres.
MinIO Object Storage - MinIO is software that allows you to self-host S3-compatible storage.
Recommended external providers
Options for different fully-managed databases or storage solutions for your Fly Apps.
- Crunchy Bridge Managed Postgres (on AWS, Azure, GCP, or Heroku)
- Neon Serverless Postgres
- PlanetScale Serverless MySQL (guide to use with Fly Apps)
- MinIO Hosted Object Storage
- Fauna (guide to use with Fly Apps)
More external providers
You can connect your Fly Apps to the usual suspects, too.