
Deploy FerretDB on Your Own Server
MongoDB-compatible database powered by PostgreSQL.
Want to deploy FerretDB on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is FerretDB?
This One-Click App deploys FerretDB with a PostgreSQL backend, providing a MongoDB-compatible interface backed by PostgreSQL.
Self-Host FerretDB
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
ferretdb:
image: ghcr.io/ferretdb/ferretdb:2.2.0
environment:
FERRETDB_POSTGRESQL_URL: postgres://username:a5479fb7fe4f08c0@ferretdb-db:5432/postgres
depends_on:
- ferretdb-db
ferretdb-db:
image: ghcr.io/ferretdb/postgres-documentdb:17-0.103.0-ferretdb-2.2.0
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: a5479fb7fe4f08c0
POSTGRES_USER: username
volumes:
- ferretdb-db-data:/var/lib/postgresql/data
volumes:
ferretdb-db-data: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:80
Why Self-Host FerretDB?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Docker Image
ghcr.io/ferretdb/ferretdb:${ferretdb_version}Official Docs
docs.ferretdb.ioWant to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"