LanguageGB
Databases

Create a managed PostgreSQL database

Add a PostgreSQL database to an app you already run on CM Cloud.

What this covers

Your app gets its own PostgreSQL 17 database on our managed cluster, with its own login that can reach that database and nothing else. You also get a console in the dashboard for looking at your data, and nightly backups.

Before you start

You need an app already deployed on CM Cloud. Know whether your framework runs migrations for you (Django, Rails, Laravel and Spring all do) — the database arrives empty and your migrations create the tables.

How to do it

  1. Open your app in the portal and choose Open database.
  2. Select Create database. It takes a few seconds.
  3. Open the Connection tab and select Show connection details.
  4. Copy the DATABASE_URL into your app's environment variables.
  5. Redeploy your app so it picks the variable up.
  6. Run your migrations, then check the Tables tab — your tables should be listed.

What our team checks

Support can confirm the database was created, that the connection string reached your app's environment, and whether your storage tier suits what you are storing.

Next step

Create the database, copy the connection string into your app's environment variables, and redeploy. Then open the Tables tab to confirm your migrations ran.

Contact Support