---
titel_en: My AI-built app needs a database. Where do I put it?
titel_nl: Mijn AI-app heeft een database nodig. Waar zet ik die?
categorie: questions
bundels: app
geverifieerd_op: 2026-09-22
bewijs: lib/config.ts, lib/bundelgrenzen.ts, content/kb/apps/database.md, content/kb/deploy/app.md
zoekwoorden: database, postgres, supabase, sqlite, app, where, waar, hosting, lovable, v0, bolt
---
## en
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 | point-in-time restore for the last 7 days; the platform backup every night |
| 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. Then one workflow file in your repository builds the image on GitHub and deploys it:

```yaml
- uses: dorelli-cloud/cli/.github/actions/dorelli-deploy@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](/docs/deploy/app).

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](/docs/plans/usage).

## nl
Naast de app, op dezelfde bundel. Op onze App-bundel (€ 15 per maand, de eerste 14 dagen gratis) krijgt je app een eigen Postgres-database op een server in de EU, en de connectiestring komt binnen in de omgevingsvariabele `DATABASE_URL`. Nergens anders iets aanmaken, en de database zit samen met het platform in de nachtelijke back-up.

| Database op de App-bundel | |
|---|---|
| Type | Postgres, eigen database en eigen gebruiker op een server die alleen voor App-klanten is |
| Grootte | 1 GB, 10 verbindingen; gebruik een connectiepool in je app |
| Waar | Dublin, EU; de app zelf draait in Amsterdam |
| Back-ups | terugzetten naar elk moment in de laatste 7 dagen; de platformback-up elke nacht |
| Toegang | host, naam en gebruiker in je portaal; het wachtwoord reset je daar |
| Export | vraag een `pg_dump` aan in een ticket, je krijgt een bestand |
| Verwijderde app | de database blijft 30 dagen bewaard, daarna weg |

Je code heeft één ding nodig: `DATABASE_URL` lezen in plaats van een vast adres. Prisma, Drizzle, `pg` en Knex doen dat standaard. Daarna bouwt één workflowbestand in je repository het image op GitHub en zet het live:

```yaml
- uses: dorelli-cloud/cli/.github/actions/dorelli-deploy@v1
  with:
    plan: app
    email: jij@voorbeeld.nl
```

Het hele bestand en de secrets die het vraagt staan in [Een app met database deployen](/docs/deploy/app).

Heeft de AI op SQLite gebouwd? Dat werkt ook, zolang je accepteert dat een container die naar nul schaalt geen lokale bestanden bewaart; zet de data over naar Postgres voordat het ertoe doet. Heeft hij op Supabase of Firebase gebouwd? Dan heeft de database al een thuis en heb je alleen de Website-bundel nodig voor € 10.

### Niet voor

Meer dan 1 GB data of 10 verbindingen, MySQL, MongoDB of Redis (Redis is een bouwsteen op de Platform-bundel), of een database die andere systemen van buiten moeten bereiken; de App-database is alleen vanuit je container bereikbaar. Grotere en eigen Postgres-servers zitten op de [Platform-bundel](/docs/plans/usage).
