Create a database
From the dashboard:- Open a Project and pick the Space you want the database in.
- Hit New Frame and choose Database.
- Give it a name, pick an engine and version, and set a size between 1 GB and 1024 GB.
- Click Deploy.
engine accepts postgres, mysql, mongodb, or redis, and defaults to postgres if you leave it out. Each engine has a sensible default version (16 for Postgres, 8 for MySQL, 7 for MongoDB, 7 for Redis); pass a version string like "15" to pin a specific one.
Get your connection details
Once the database is online, open it in the dashboard and you’ll see its credentials and a ready-to-paste connection string. There’s a copy button on each field, and the password stays hidden until you ask for it. Via API:database_url scheme matches the engine (postgres://, mysql://, mongodb://, or redis://). Redis connection strings carry only the password, with no username or database name.
The connection string is the quickest way in. A database is reachable from your apps in the same Project over the private network. It isn’t exposed to the public internet, which is what you want for a database.
Use it from your app
Most libraries take a single connection string, so the easiest path is to drop the database’s URL into an environment variable on the app that needs it. Nubo can wire that up for you. From the database, point it at the app Frame and Nubo copies the connection string in as a variable (it usesDATABASE_URL unless you pick another name):
Storage
Every database is backed by a volume, which is the part that makes your data survive restarts and redeploys. You set the size when you create the database. The data is yours and it stays on that volume until you delete the database.Delete a database
Deleting a database removes it and the storage behind it. This erases the data, so take a dump first if you want to keep anything.Plans and limits
A database’s size can be anywhere from 1 GB to 1024 GB. How much total storage you can use depends on your plan. See Plans for the current limits.Managed Nubo vs self-hosted agents
- Managed Nubo: managed databases work as described here. We run the engine and the storage, and you just use the connection string.
- Self-hosted agents: there’s no managed database, but you can run your own. Deploy the database as a Frame and attach a volume for its data. It lives on your hardware, so remember to back it up.
Related
Volumes
The persistent storage behind every database
Environment variables
Where your connection string lives in your app
Frames
Databases run as Frames, like your apps
