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
mongoshand 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
- When the server shows Running, SSH in as root and check the services with
systemctl list-units | grep -i -e postgres -e ferret. - Create a dedicated PostgreSQL role and database for your app instead of using the superuser.
- Test the connection with
mongosh 'mongodb://<user>:<password>@<server IP>:27017/'. - 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.