Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto

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.

1 GBMinimum memory
Ubuntu 24.04 LTSBase image
27017/tcpPorts
Apache-2.0License

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.

FerretDB on your own server.
Ready in under 5 minutes.

Pick a region and a size; the console shows the address as soon as it is up.

Every server delivered in under 5 minutesPay with crypto14-day money-back