---
title: "FerretDB, MongoDB-compatible on PostgreSQL · CloudSat"
description: "Deploy FerretDB on a CloudSat VPS: the MongoDB wire protocol on top of PostgreSQL and DocumentDB, open source under Apache-2.0, with NVMe and root SSH access."
url: https://cloudsat.io/apps/deploy-ferretdb
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Databases](https://cloudsat.io/apps/category/database-servers)

# FerretDB on a VPS

FerretDB speaks the MongoDB wire protocol and stores documents in PostgreSQL. Keep your MongoDB drivers and tools on an Apache-licensed stack.

[Deploy FerretDB](https://dash.cloudsat.io/console/deploy?image=app%3Aferretdb&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About FerretDB

FerretDB accepts MongoDB wire protocol connections and stores the documents in PostgreSQL. Since version 2 it uses the DocumentDB extension, translating queries into SQL, so many apps written for MongoDB drivers work unchanged. It is released under Apache-2.0.

It suits teams who want MongoDB-style development on an engine they can run with PostgreSQL tools. A CloudSat server gives that engine NVMe storage and DDR5 memory, and a firewall keeps port 27017 private to your app servers.

The one-click server runs FerretDB in front of PostgreSQL with DocumentDB. Clients use a `mongodb://` URI with PostgreSQL credentials.

## What you get with FerretDB

- MongoDB wire protocol on 27017 for `mongosh` and drivers
- Storage in PostgreSQL via the DocumentDB extension
- Authentication through PostgreSQL roles
- Familiar PostgreSQL tooling for backups and monitoring
- Apache-2.0, with no source-available strings attached

## FerretDB use cases

- MongoDB-based apps on an open-source license
- Teams that already run PostgreSQL and want one engine
- Test databases for MongoDB driver code

## After you deploy FerretDB

1. When the server shows **Running**, SSH in as root and check the services with `systemctl list-units | grep -i -e postgres -e ferret`.
2. Create a dedicated PostgreSQL role and database for your app instead of using the superuser.
3. Test the connection with `mongosh 'mongodb://<user>:<password>@<server IP>:27017/'`.
4. Allow 27017 only from your application servers in a CloudSat firewall rule.

## FerretDB ports

Open these in your firewall if you use one: `27017/tcp MongoDB wire protocol`.

## FerretDB FAQ

### Is FerretDB a full replacement for MongoDB?

For many applications, yes, but not for every feature. Check FerretDB's compatibility notes for the commands and aggregation stages your code uses, and run your tests against it before moving production traffic.

### Which credentials go in the connection string?

PostgreSQL ones. FerretDB passes authentication through to PostgreSQL, so the user and password in your `mongodb://` URI belong to a PostgreSQL role with access to the target database.

**Disclaimer.** The FerretDB project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like FerretDB

[All apps in Databases](https://cloudsat.io/apps/category/database-servers)

- [MongoDB](https://cloudsat.io/apps/deploy-mongodb): Databases MongoDB Community Server stores data as flexible BSON documents, with rich queries, indexes, aggregation and replica sets, on a server you control.
- [PostgreSQL](https://cloudsat.io/apps/deploy-postgresql): Databases PostgreSQL is a mature open-source relational database with strong SQL standards support, JSONB, full-text search, replication and a deep extension ecosystem.
- [Apache CouchDB](https://cloudsat.io/apps/deploy-couchdb): Databases Apache CouchDB stores JSON documents behind an HTTP API and replicates between servers, browsers and phones. The backend of choice for offline-first apps.
- [pgAdmin](https://cloudsat.io/apps/deploy-pgadmin): Databases pgAdmin 4 is the open-source administration tool for PostgreSQL: browse objects, write and explain queries, and manage roles from a browser tab.
- [Adminer](https://cloudsat.io/apps/deploy-adminer): Databases Adminer is a full database manager in one PHP file: browse tables, run SQL, edit rows and export dumps for MySQL, MariaDB, PostgreSQL, SQLite and more.
- [Apache Kafka](https://cloudsat.io/apps/deploy-apache-kafka): Databases Apache Kafka is a distributed event streaming platform: durable, partitioned logs that producers write to and consumers read at their own pace.
