Video coming soon…
🗄️ Setup DragonflyDB — High-Throughput Redis Replacement
Deploy DragonflyDB on Ubuntu with Docker — a multi-threaded, Redis and Memcached compatible in-memory store built to scale vertically, running on port 6382 with a generated password.
⚠️ 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/dragonfly/dragonfly-ubuntu.sh
chmod +x dragonfly-ubuntu.sh
sudo bash dragonfly-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/databases/dragonfly/dragonfly-ubuntu.sh
2 Make it Executable
chmod +x dragonfly-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, generates a 24-character password, and starts dragonfly with --requirepass and memlock set to unlimited, publishing host port 6382 to the container's 6379.
sudo bash dragonfly-ubuntu.sh
4 Connect and Verify
The installer prints your generated password — save it. Any Redis client works, including redis-cli:
redis-cli -h <your-server-ip> -p 6382 -a <your-password> PING
Ports Used
| Port | Purpose |
|---|---|
| 6382 | Redis (RESP) + Memcached protocol (host → container 6379) — never expose publicly |
| ./data | Snapshot files |
| memlock | ulimit set to -1 (unlimited) so memory pages can be locked |