代码拉取完成,页面将自动刷新
version: '3'
services:
redis1:
image: redis:6.0
container_name: redis1
command: redis-server /etc/redis/redis.conf --requirepass 123456 --masterauth 123456
volumes:
- ./data/redis1:/data
- ./conf/redis1.conf:/etc/redis/redis.conf
network_mode: "host"
redis2:
image: redis:6.0
container_name: redis2
volumes:
- ./data/redis2:/data
- ./conf/redis2.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf --slaveof 192.168.147.11 6380 --requirepass 123456 --masterauth 123456
network_mode: "host"
redis3:
image: redis:6.0
container_name: redis3
volumes:
- ./data/redis3:/data
- ./conf/redis3.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf --slaveof 192.168.147.11 6380 --requirepass 123456 --masterauth 123456
network_mode: "host"
sentinel1:
image: redis:6.0
container_name: redis-sentinel-1
command: redis-sentinel /etc/redis/sentinel.conf
volumes:
- ./conf/sentinel1.conf:/etc/redis/sentinel.conf
network_mode: "host"
sentinel2:
image: redis:6.0
container_name: redis-sentinel-2
command: redis-sentinel /etc/redis/sentinel.conf
volumes:
- ./conf/sentinel2.conf:/etc/redis/sentinel.conf
network_mode: "host"
sentinel3:
image: redis:6.0
container_name: redis-sentinel-3
command: redis-sentinel /etc/redis/sentinel.conf
volumes:
- ./conf/sentinel3.conf:/etc/redis/sentinel.conf
network_mode: "host"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。