Video coming soon…
🗄️ Setup Valkey — The Linux Foundation Redis Fork
Deploy Valkey on Ubuntu with Docker — a drop-in Redis replacement forked at Redis 7.2, running on port 6381 with a generated password and AOF persistence enabled.
⚠️ 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/valkey/valkey-ubuntu.sh
chmod +x valkey-ubuntu.sh
sudo bash valkey-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/databases/valkey/valkey-ubuntu.sh
2 Make it Executable
chmod +x valkey-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, generates a 24-character password, and starts valkey-server with --requirepass and --appendonly yes, publishing host port 6381 to the container's 6379.
sudo bash valkey-ubuntu.sh
4 Connect and Verify
The installer prints your generated password — save it. Test the connection:
docker exec -it valkey valkey-cli -a <your-password> PING
Ports Used
| Port | Purpose |
|---|---|
| 6381 | Valkey RESP protocol (host → container 6379) — never expose publicly |
| ./data | Appendonly persistence files (--appendonly yes) |