My AI-built app needs a database. Where do I put it?
Next to the app, on the same plan. On our App plan (€ 15 a month, first 14 days free) your app gets its own Postgres database on a server in the EU, and the connection string arrives in the environment variable DATABASE_URL. Nothing to sign up for elsewhere, and the database is in the nightly backup together with the platform.
| Database on the App plan | |
|---|---|
| Type | Postgres, own database and own user on a server used only for App customers |
| Size | 1 GB, 10 connections; use a connection pool in your app |
| Where | Dublin, EU; the app itself runs in Amsterdam |
| Backups | a copy of your database every night, kept 90 days; restore to an earlier day from your portal, or to any moment in the last 7 days through a ticket |
| Access | host, name and user in your portal; the password can be reset there |
| Export | ask for a pg_dump in a ticket, you get a file |
| Deleted app | the database is kept 30 days, then dropped |
Your code needs one thing: read DATABASE_URL instead of a hard-coded address. Prisma, Drizzle, pg and Knex all do that by default. The string points at the server's own name with sslmode=verify-full. With that, the Node driver pg, Drizzle (on pg or on postgres), Knex and Prisma 7 with its pg adapter check the certificate and the name against the certificate authorities that come with Node. You set nothing extra, and rejectUnauthorized: false is not needed. Prisma 6 and older encrypts the connection but does not check the certificate. Use the string as it is: the host in your portal is our short name for the same server, and the certificate does not carry that name. Does your code look for the literal text sslmode=require? Then let it accept verify-full too. Does your image run libpq, for example psql, pg_dump, psycopg or PHP PDO? Then put ENV PGSSLROOTCERT=/etc/ssl/certs/ca-certificates.crt in your Dockerfile and install the package ca-certificates; without it libpq refuses verify-full.
Then one workflow file in your repository builds the image on GitHub and deploys it:
- uses: dorelli-cloud/action@v1
with:
plan: app
email: you@example.com
The full file and the secrets it asks for are in Deploy an app with a database.
Did the AI build on SQLite? That works too as long as you accept that a container which scales to zero keeps no local files; move the data to Postgres before it matters. Did it build on Supabase or Firebase? Then the database already has a home and you only need the Website plan for € 10.
Not for
More than 1 GB of data or 10 connections, MySQL, MongoDB or Redis (Redis is a building block on the Platform plan), or a database that other systems must reach from outside; the App database is reachable from your container only. Bigger and dedicated Postgres servers are on the Platform plan.
Checked against the code on 16 October 2026 · Evidence: lib/config.ts, lib/bouwstenen/gedeelde-db.ts, lib/bundelgrenzen.ts, content/kb/apps/database.md, content/kb/deploy/app.md