Features · Databases & Storage
A database and file storage for every app.
Each app can have its own Postgres database and its own S3-compatible storage bucket, created on its first deploy. Or connect your own, and the app's code stays the same.
Three Choices for Each App
Internal
Astrodock creates the database and the bucket, each with its own credentials. The database is backed up every night.
External
Use a managed service instead. You add its credentials, and Astrodock gives them to the app.
None
Plenty of apps need neither. Then nothing is created.
Switching Later
Moving to your own database is a setting.
Internal and external hand the app the same variable name. The code reads a connection string, and works the same whether the database is on your Astrodock server or with another provider.
When an app needs a managed Postgres with replicas, you change a setting and redeploy. The code doesn't change.
Bringing Your Own Database →{
"database": { "mode": "internal" },
"storage": { "mode": "none" }
}
# the app reads, either way:
ASTRODOCK_DATABASE_URL
Side by Side
Internal or external, side by side.
Your app reads the same variable either way.
| Internal | External | |
|---|---|---|
| Who Creates It | Astrodock, on deploy | You, at your provider |
| Where It Runs | Your Astrodock server | Neon, RDS, Supabase, R2 |
| App Reads | ASTRODOCK_DATABASE_URL | ASTRODOCK_DATABASE_URL |
| Code Changes | None | None |
| Backed Up By | Astrodock, nightly (the database) | Your provider |
| Good For | Starting, and most small apps | Scale, replicas, compliance |
Or start on Astrodock Cloud, or install it on a machine you control.