Video coming soon…

🗄️ Setup FerretDB — MongoDB-Compatible on PostgreSQL

Deploy FerretDB on Ubuntu with Docker — an open-source MongoDB-compatible database that speaks the MongoDB protocol while storing data in PostgreSQL with the DocumentDB extension, on port 27018.

⚠️ This script is provided for demo and testing purposes only. Not intended for production use.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along with the video.

Automated install script — one command deploys FerretDB with a DocumentDB-enabled PostgreSQL backend on port 27018. Connect with any MongoDB driver.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/databases/ferretdb/ferretdb-ubuntu.sh
chmod +x ferretdb-ubuntu.sh
./ferretdb-ubuntu.sh

Tutorial Steps

1 Download the Script

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/databases/ferretdb/ferretdb-ubuntu.sh

2 Make it Executable

chmod +x ferretdb-ubuntu.sh

3 Run the Installer

./ferretdb-ubuntu.sh

4 Connect with a MongoDB Client

mongodb://ferret:YOUR_PASSWORD@your-server-ip:27018/

Ports Used

PortPurpose
27018FerretDB MongoDB-compatible endpoint (mapped from container port 27017)
5432PostgreSQL with DocumentDB — internal to the Docker network, not exposed

Overview

Why Use It

When You Need It

    Who Should Use It

      Real Use Cases

        Main Features

          How to Use After Installation

            Security Best Practices

              Ports and Firewall Notes

              Backup and Maintenance

                Common Mistakes

                  Troubleshooting

                    Alternatives

                    When Not to Use It

                    PrismaTechWork Professional Help

                      Contact Us

                      Frequently Asked Questions