代码拉取完成,页面将自动刷新
version: '3.4'
services:
master:
image: redis
container_name: redis-master
restart: always
command: redis-server --bind 0.0.0.0 --protected-mode no --port 7000 --daemonize no --requirepass mypassword --masterauth mypassword --appendonly yes --logfile "redis.log" --dir ./
ports:
- 7000:7000
volumes:
- ./data7000:/data
slave1:
image: redis
container_name: redis-slave1
restart: always
command: redis-server --bind 0.0.0.0 --protected-mode no --slaveof x.x.x.x 7000 --port 7001 --daemonize no --requirepass mypassword --masterauth mypassword --appendonly yes --logfile "redis.log" --dir ./
ports:
- 7001:7001
volumes:
- ./data7001:/data
slave2:
image: redis
container_name: redis-slave2
restart: always
command: redis-server --bind 0.0.0.0 --protected-mode no --slaveof x.x.x.x 7000 --port 7002 --daemonize no --requirepass mypassword --masterauth mypassword --appendonly yes --logfile "redis.log" --dir ./
ports:
- 7002:7002
volumes:
- ./data7002:/data
sentinel1:
image: redis
container_name: sentinel1
restart: always
command: redis-sentinel /etc/redis/sentinel.conf
ports:
- 26379:26379
volumes:
- ./sentinel26379:/data
- ./sentinel26379.conf:/etc/redis/sentinel.conf
sentinel2:
image: redis
container_name: sentinel2
restart: always
command: redis-sentinel /etc/redis/sentinel.conf
ports:
- 26380:26380
volumes:
- ./sentinel26380:/data
- ./sentinel26380.conf:/etc/redis/sentinel.conf
sentinel3:
image: redis
container_name: sentinel3
restart: always
command: redis-sentinel /etc/redis/sentinel.conf
ports:
- 26381:26381
volumes:
- ./sentinel26381:/data
- ./sentinel26381.conf:/etc/redis/sentinel.conf
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。