Documentation

Example: Add a Database

Provision a PostgreSQL, MongoDB, or Redis service and connect it to your app in minutes.

1. Create the database

From your project, add a new Database service. Choose PostgreSQL, MongoDB, or Redis, select a version, and optionally set CPU or memory limits that match your workload.

2. Connect your app

nouva injects connection strings into your app as environment variables. Use the private URL inside the platform for the best performance.

DATABASE_URL=postgres://user:password@host:port/database?sslmode=require
MONGODB_URI=mongodb://user:password@host:port/database?authSource=admin

3. Verify and monitor

Deploy your app to load the new variables, then verify connectivity. Monitor logs and resource usage from the database service panel.