This repo is cloned from: https://github.com/yowko/docker-compose-redis-cluster, here're some changes to fit my own needs:
- Upgrade Redis version by using image
6.0.7-alpine
- Simplify the usage by removing the master/slave password (CAUTION: DO NOT USE IT ON PRODUCTION ENVIRONMENT)
- docker
- docker-compose
ip=$(ipconfig getifaddr en0) docker-compose up -d --build
The redis cluster will be ready on 127.0.0.1:7000
docker-compose down -v