Managed PostgreSQL, Redis and ClickHouse, from £6 a month
Add a database beside your app in one step, on any paid plan. Each one is priced by its memory, so you see the cost before you create it. We run it and back it up on a schedule, and it is not open to the internet unless you choose to open it.
What it costs
- Each database
- £6 per GB of memory a month, 1 GB the smallest, whole GB sizes
- Examples
- 1 GB: £6 a month · 4 GB: £24 a month
- Standby copy with automatic failover
- Doubles the price: 4 GB with a standby is £48 a month (PostgreSQL and Redis)
- Which plan
- Any paid plan, from Starter at £12 a month. Same database price on every plan.
- Private network
- Included on Pro, Studio, and Agency, from £59 a month
PostgreSQL 15
Live standby availableThe usual choice for an application database.
- Your own database, user and password, created for you
- Change the main server settings from the dashboard
- Add a live standby copy that takes over if the main one fails
- Scheduled backups, and restores from the dashboard
Redis 7
Live standby availableFor caching, queues, sessions and rate limits.
- Protected by a password set when it is created
- Standard Redis, or Redis Stack for extras such as JSON and search
- Choose how it saves data and what it drops when memory is full
- Add a live standby copy that takes over if the main one fails
ClickHouse 25.8
For fast reports over events, logs and product usage.
- Connect over its own protocol or over HTTP
- Set limits on how much memory and time a query may use
- Runs a long-term-support version, so it does not change under you every few months
- Needs at least 512 MB of memory to run well
Your app connects with one environment variable
Environment variables are the settings and secrets your app reads. The database's address and password go in one of them.
Attach it to your site
Create the database and choose the site it belongs to. It runs on our UK servers in a container of its own.
The connection string is offered to you
Add DATABASE_URL, REDIS_URL or CLICKHOUSE_URL to your site in the dashboard and the connection string is offered, ready to insert.
Closed to the internet by default
Switch on a public address only if you need one. You choose which IP addresses may connect, and connections use TLS.
On Pro, Studio, and Agency: a private network as well
Leave the private network option on when you create the database and it gets a private address that only your own apps and devices can reach. Your laptop can join too, so tools like psql or TablePlus connect directly. How the private network works
We run it, and you can see it running
All of this is in the dashboard from the moment a database starts.
Backups on a schedule
Set a backup schedule for each database, or take one when you want. Restore from the dashboard.
A standby that takes over
A live copy of a PostgreSQL or Redis database on a second machine, which takes over automatically if the main one fails. Your connection string stays the same. The copy is the same size, so it doubles the price.
Resize from the dashboard
Change a database's memory from the dashboard, in whole GB, and its processing power grows with it. Each GB is £6 a month.
See what it is doing
Live figures for each database: memory in use, connections, activity and disk.
A console when you need one
Run SQL against PostgreSQL or ClickHouse, or commands against Redis, from the dashboard.
Logs
Read the database's log from the dashboard, live or as a snapshot.
Limits to know before you start
- PostgreSQL runs version 15. Moving data from PostgreSQL 16 or 17 needs testing first.
- ClickHouse needs at least 512 MB of memory, and a live standby copy is not available for it.
- A database does not have a public address until you switch one on.
- The private network is only on Pro, Studio, and Agency.
For developers: what you can change
PostgreSQL 15
- Settings you can change include shared_buffers, work_mem, max_connections, checkpoint timing, WAL compression and slow-query logging.
- The connection string uses the postgresql:// scheme with a generated user and password.
Redis 7
- Settings you can change include maxmemory, maxmemory-policy (eviction), appendonly and save (persistence), timeout and maxclients.
- Redis Stack adds the search, JSON, Bloom filter and time series modules.
ClickHouse 25.8
- Both interfaces are available: the native protocol (port 9000 inside the container) and HTTP (8123).
- Query limits you can set include max_memory_usage, max_threads, max_execution_time and max_result_rows.
- A live standby copy is not available for ClickHouse.
Where your data lives
- Your site, its database, your email and DNS run on our own servers in a UK data centre.
- Nightly backups are kept on our UK servers too.
- A monthly disaster-recovery copy of those backups is stored with Cloudflare in the EU, so we can rebuild even if the UK data centre were lost.
- Support comes from the UK team who build and run the platform.
Every hosted site also gets its own MySQL database. How backups and restores work, or read how to deploy an app your AI agent built for choosing between the three engines.
Managed database FAQ
What does a managed database cost?
Each database is charged on its own, by its memory: £6 per GB a month, in whole GB, with 1 GB the smallest. So 1 GB is £6 a month and 4 GB is £24. The price is the same on every paid plan, and ten databases cost ten times one. A standby copy (PostgreSQL and Redis only) is a second copy of the same size, so it doubles the price: 4 GB with a standby is £48 a month. You need a paid plan, from Starter at £12 a month. An app on Starter (£12) with a 1 GB PostgreSQL database (£6) costs £18 a month.
Which versions do you run?
PostgreSQL 15, Redis 7 and ClickHouse 25.8. Each database runs in its own container, separate from your site. Every hosted site also gets its own MySQL database, which is what WordPress and most PHP software use.
Can I move a database from a newer PostgreSQL version?
Our managed PostgreSQL is version 15. A dump from PostgreSQL 16 or 17 may use features version 15 does not have, so test the import before you rely on it.
Is the database reachable from the internet?
A managed database is not reachable from the internet unless you switch on a public address, where you choose which IP addresses may connect and connections are encrypted with TLS. On plans with the private network, it can also get a private address that only your own apps and devices can reach. The private network is included on Pro, Studio, and Agency.
How do I get the connection string into my app?
Attach the database to your site, then add an environment variable called DATABASE_URL (or REDIS_URL, or CLICKHOUSE_URL). The dashboard offers the connection string for you to insert, so you never copy a password by hand.
Can my app store uploaded files in the database?
Yes, and for a git app it should. A git app keeps no files between deploys, so uploads and anything your app saves belong in a database. We do not offer a separate file storage service.
Are database backups separate from site backups?
Yes. Each managed database has its own backup schedule and its own restore history. Your site backups cover the site and the MySQL database that comes with it.
Where is my data held?
Your site, its database, email, DNS and nightly backups are hosted on our own servers in a UK data centre, run by our UK team. The one copy held outside the UK is a monthly disaster-recovery copy of backups, stored with Cloudflare in the EU. Card payments go through Stripe, and AI features send your prompt to an AI provider outside the UK; both are listed on our sub-processor page.