text redis sentinel docker撰写yml
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text redis sentinel docker撰写yml相关的知识,希望对你有一定的参考价值。
version: '2'
services:
redis_master:
image: redis:4.0.2-alpine
ports:
- "6579:6379"
redis_slave:
image: redis:4.0.2-alpine
ports:
- "6479:6379"
sentinel1:
build: .
image: redis-sentinel
environment:
- MASTER_NAME=mymaster
- QUORUM=2
- MASTER=localhost:6579
- SLAVES=localhost:6479
ports:
- "26379:26379"
sentinel2:
build: .
image: redis-sentinel
environment:
- MASTER_NAME=mymaster
- QUORUM=2
- MASTER=localhost:6579
- SLAVES=localhost:6479
ports:
- "26479:26379"
sentinel3:
build: .
image: redis-sentinel
environment:
- MASTER_NAME=mymaster
- QUORUM=2
- MASTER=localhost:6579
- SLAVES=localhost:6479
ports:
- "26579:26379"
以上是关于text redis sentinel docker撰写yml的主要内容,如果未能解决你的问题,请参考以下文章
redis sentinel介绍
redis sentinel 工作原理
Redis的哨兵(Sentinel)分析
Redis-Sentinel 数据源配置
请教redis sentinel 无法failover 的问题
redis desktop manager怎么连接redis sentinel