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.
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
| Port | Purpose |
|---|---|
| 27018 | FerretDB MongoDB-compatible endpoint (mapped from container port 27017) |
| 5432 | PostgreSQL with DocumentDB — internal to the Docker network, not exposed |