Docs · Databases
Managed Postgres and Redis for your apps
Makofy offers two add-ons per workspace: managed Postgres 18 for $3 a month, with nightly backups, and private Redis 8 for $2 a month. Both are reachable only from apps in your workspace, not from the internet; you copy the connection URL from the dashboard into an environment variable such as DATABASE_URL or REDIS_URL.
Last updated · By the Makofy team (Muncar Ventures LLC)
At a glance
| Postgres | Redis | |
|---|---|---|
| Version | PostgreSQL 18 | Redis 8 |
| Price | $3/month | $2/month |
| How many | One per workspace (its own database and role) | One per workspace (password-protected) |
| Reachable from | Apps in your workspace | Apps in your workspace |
| Reachable from the internet | No | No |
| Backups | Nightly | Not backed up; persisted to disk with an append-only file |
| Memory | Shared Postgres server | About 112 MB, no eviction |
Add Postgres
- Open Add-ons in the dashboard and add Postgres. It needs an active trial or subscription.
- Copy the connection URL the dashboard shows.
- Add it as
DATABASE_URLto each app that uses the database, or to an env group linked to those apps (see environment variables). - Redeploy the apps so they pick up the variable.
Your workspace gets its own database and its own role; other workspaces can’t connect to it. The connection runs over Makofy’s private network, so the URL uses sslmode=disable:
DATABASE_URL=postgres://<user>:<password>@<host>:5432/<database>?sslmode=disableMost frameworks read DATABASE_URL directly or with a small helper: Prisma, Drizzle and pg in Node.js, SQLAlchemy and dj-database-url in Python, pgx in Go. Because the database can only be reached from inside the workspace, run migrations from the app itself, for example as part of its start command: npx prisma migrate deploy && node server.js or python manage.py migrate && gunicorn mysite.wsgi.
Add Redis
Add Redis from Add-ons the same way and copy its URL into REDIS_URL. Redis runs inside your workspace, requires a password, and keeps its data on disk with an append-only file, so it survives restarts. It is sized for caches, sessions, rate limits and job queues (BullMQ, Celery, RQ, Sidekiq): about 112 MB of memory with the noeviction policy, which means writes fail with an error rather than silently dropping keys when it is full. Set TTLs on cache keys to keep it within that size.
REDIS_URL=redis://:<password>@<host>:6379/0Moving existing data in
Because the database isn’t exposed to the internet, you can’t run pg_restore from your laptop against it. Run the import from inside your workspace instead:
- Create a dump on the old host:
pg_dump --format=custom --no-owner "$OLD_DATABASE_URL" > app.dump. - Put the dump somewhere your app can download it over HTTPS (for example a private object-storage link).
- Deploy a short-lived worker service in the same workspace, built from a Dockerfile that includes the Postgres client, whose command downloads the dump, runs
pg_restore --no-owner --dbname "$DATABASE_URL" app.dumpand thensleep infinity, so it doesn’t restart and run the import again. - Check the logs, then delete the service and the uploaded dump.
Smaller databases can also be loaded by your app’s own migration or seed scripts. If you’d like a hand with a migration, contact us.
Backups
Postgres is backed up every night. If you need to recover data, contact us. For extra safety on important data, keep your own periodic pg_dump too, for example from a cron service that uploads the dump to storage you control. Redis is not backed up; keep anything you can’t lose in Postgres.
FAQ
Frequently asked questions
How much does managed Postgres cost on Makofy?
$3 a month per workspace for PostgreSQL 18 with nightly backups, plus the price of the apps that use it.
Can I connect to my Makofy database from my laptop?
No. Postgres and Redis are reachable only from apps in your workspace, not from the internet.
Does Makofy set DATABASE_URL automatically?
No. Copy the connection URL from the dashboard into DATABASE_URL (or an env group) and redeploy.
Is Makofy Redis persistent?
Yes, it writes an append-only file to disk, so data survives restarts. It is not backed up, and it holds about 112 MB.
Can I have more than one database?
Each workspace has one Postgres database and one Redis instance. Several apps in the workspace can share them.
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.