1 Star 0 Fork 0

Mrzhuang/docker-redis-cluster

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2020-07-19 02:48 . init project
version: "3"
services:
redis-master-1:
container_name: redis-master-7001
image: redis:6.0.5
ports:
- 7001:7001
volumes:
- ./config/redis-1.conf:/etc/redis/redis.conf
- ./logs/redis-1:/logs/redis
command: redis-server /etc/redis/redis.conf
network_mode: "host"
redis-master-2:
container_name: redis-master-7002
image: redis:6.0.5
ports:
- 7002:7002
volumes:
- ./config/redis-2.conf:/etc/redis/redis.conf
- ./logs/redis-2:/logs/redis
command: redis-server /etc/redis/redis.conf
network_mode: "host"
redis-master-3:
container_name: redis-master-7003
image: redis:6.0.5
ports:
- 7003:7003
volumes:
- ./config/redis-3.conf:/etc/redis/redis.conf
- ./logs/redis-3:/logs/redis
command: redis-server /etc/redis/redis.conf
network_mode: "host"
redis-slave-4:
container_name: redis-slave-7004
image: redis:6.0.5
ports:
- 7004:7004
volumes:
- ./config/redis-4.conf:/etc/redis/redis.conf
- ./logs/redis-4:/logs/redis
command: redis-server /etc/redis/redis.conf
network_mode: "host"
redis-slave-5:
container_name: redis-slave-7005
image: redis:6.0.5
ports:
- 7005:7005
volumes:
- ./config/redis-5.conf:/etc/redis/redis.conf
- ./logs/redis-5:/logs/redis
command: redis-server /etc/redis/redis.conf
network_mode: "host"
redis-slave-6:
container_name: redis-slave-7006
image: redis:6.0.5
ports:
- 7006:7006
volumes:
- ./config/redis-6.conf:/etc/redis/redis.conf
- ./logs/redis-6:/logs/redis
command: redis-server /etc/redis/redis.conf
network_mode: "host"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jayying/docker-redis-cluster.git
git@gitee.com:jayying/docker-redis-cluster.git
jayying
docker-redis-cluster
docker-redis-cluster
master

搜索帮助