sink/redis-cluster/README.md
Update IP Address: Replace 192.168.1.33 with your system's IP address in docker-compose.yml:
# Find your IP
ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}' | head -1
Start Cluster:
docker compose up -d
Verify Cluster:
docker exec redis-node-1 redis-cli -p 7001 cluster info
YOUR_IP:7001, YOUR_IP:7002, YOUR_IP:7003localhost:5540To completely reset the cluster:
docker compose down -v
# Update IP in docker-compose.yml if needed
docker compose up -d
environment:
- REDIS_CLUSTER_URLS=redis://YOUR_IP:7001,redis://YOUR_IP:7002,redis://YOUR_IP:7003
Important: Always replace YOUR_IP with your actual system IP address.