Managed Postgres
Managed Postgres for side projects, $3 a month
Makofy’s managed Postgres costs $3 a month: PostgreSQL 18 with nightly backups, its own database and role for your workspace, and a connection URL your apps read from DATABASE_URL. Next to a $1.50 Nap web app, a complete side project with a database runs $4.50 a month.
Last updated · By the Makofy team (Muncar Ventures LLC)
What you get for $3 a month
| Makofy Postgres | |
|---|---|
| Version | PostgreSQL 18 |
| Price | $3/mo per workspace, prorated |
| Backups | Nightly, taken by the platform |
| Isolation | Its own database and role; other workspaces’ roles can’t connect to it |
| Access | From your apps running on Makofy; not exposed to the internet |
| Connection | A connection URL shown in the dashboard, which you set as DATABASE_URL |
| Sharing | One database per workspace, usable by all of its apps |
| Location | Helsinki, Finland (EU), next to your apps |
Running the database yourself on a small VPS also works, but then upgrades, disk space, backups and security patches are yours. The add-on takes care of those for the price of a coffee, and it sits in the same place as your apps, so queries don’t cross the internet.
What it doesn’t do (yet)
It’s better to know the limits before you build on it:
- There is no connection from outside Makofy, so desktop tools like psql on your laptop, TablePlus or pgAdmin can’t reach it. Run queries and migrations from an app in your workspace.
- Backups are nightly copies taken by the platform. There is no point-in-time recovery and no self-service restore button, so keep your own
pg_dumpexports of anything you can’t afford to lose; a cron service can make them. - Your database lives on a shared PostgreSQL 18 server, with a separate database and role per workspace, rather than on a dedicated machine.
- The connection URL is not injected automatically. Copy it into
DATABASE_URL(or into a shared env group) yourself.
If you need a dedicated, highly available or very large database, or many external tools connecting to it, a specialised database provider fits better. You can still run the app on Makofy and point DATABASE_URL at that provider, since apps can make outbound connections.
Connect your app in five steps
- Start the 7-day free trial (card required) and open Add-ons in the dashboard.
- Add Postgres. Makofy creates your workspace’s database and role and shows a connection URL of the form
postgres://user:password@host:5432/database. - Add
DATABASE_URLwith that value to each app that needs it, or to an env group linked to those apps (see environment variables). - Deploy the app. Variables are applied at deploy time, so a running app sees the new value after its next deploy.
- Run migrations from the app itself, for example by starting with
npm run migrate && npm startorpython manage.py migrate && gunicorn mysite.wsgi.
// Node.js with node-postgres (pg)
import pg from 'pg';
const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL });
const { rows } = await pool.query('select version()');
console.log(rows[0].version); // PostgreSQL 18...# Python with psycopg 3
import os
import psycopg
with psycopg.connect(os.environ["DATABASE_URL"]) as conn:
print(conn.execute("select version()").fetchone()[0])One gotcha: SQLAlchemy rejects the short postgres:// scheme, so replace it with postgresql+psycopg:// (or postgresql://) before creating the engine. Django projects can read the URL with dj-database-url, which accepts it as-is; see deploying Django.
Side-project stacks and what they cost
| Stack | Pieces | Monthly cost |
|---|---|---|
| Web app that sleeps + database | Nap web + Postgres | $4.50 |
| Two small apps sharing a database | 2 × Nap web + Postgres | $6 |
| Always-on API + database | Starter web + Postgres | $6.50 |
| Bigger app + database | Basic web (1 GB / 1 vCPU) + Postgres | $9 |
| App + worker + database + queue | Starter web + Starter worker + Postgres + Redis | $12.50 |
Because there is one database per workspace, apps that share it should keep their tables apart, for example with a schema per app (CREATE SCHEMA billing;) named in each app’s ORM settings. Need a cache or a job queue as well? The Redis 8 add-on is $2 a month; see background workers.
Moving an existing database in
Because the database isn’t reachable from the internet, import from inside Makofy: deploy a short-lived service in your workspace (for example from a Dockerfile based on the postgres:18 image) that fetches your pg_dump file and runs pg_restore against DATABASE_URL, then delete that service. The databases guide has the details, and you can contact us if you’d like help with a migration.
FAQ
Frequently asked questions
How much is managed Postgres on Makofy?
$3 a month for PostgreSQL 18 with nightly backups, billed per workspace and shared by its apps.
Can I connect to the database from my laptop?
No. The database isn’t exposed to the internet; only apps running in your Makofy workspace can connect, so run migrations and queries from an app.
Is DATABASE_URL set automatically?
No. Copy the connection URL from the dashboard into a DATABASE_URL variable (or an env group) and redeploy the app.
Are backups included?
Yes, the platform takes nightly backups. There is no self-service point-in-time restore, so keep your own dumps of critical data as well.
Which Postgres version does Makofy run?
PostgreSQL 18.
Related
Deploy your app in a few minutes.
Connect a GitHub repo or run makofy deploy. Flat price per app, 7-day free trial, card required.