Open hisenyuan opened 6 years ago
master: image: redis:3 ports: - "7001:6379" slave: image: redis:3 command: redis-server --slaveof redis-master 6379 links: - master:redis-master ports: - "7002:6379" sentinel: build: sentinel environment: - SENTINEL_DOWN_AFTER=5000 - SENTINEL_FAILOVER=5000 - SENTINEL_QUORUM 1 links: - master:redis-master - slave ports: - "7003:26379"
what were modified:
SENTINEL_QUORUM 1
ps: if you what to scale the number of salves or sentinels, add more instance in the docker-compose.yml
reference: https://redis.io/topics/sentinel
what were modified:
SENTINEL_QUORUM 1
in sentinelps: if you what to scale the number of salves or sentinels, add more instance in the docker-compose.yml
reference: https://redis.io/topics/sentinel