version: '3.7'
services:
redis6379:
image: 'redis'
container_name: redis6379
command:
["redis-server", "/usr/local/etc/redis/redis.conf"]
volumes:
- ./redis-cluster/6379/conf/redis.conf:/usr/local/etc/redis/redis.conf
- ./redis-cluster/6379/data:/data
ports:
- "6379:6379"
- "17001:17001"
environment:
- TZ=Asia/Shanghai
redis6378:
image: 'redis'
container_name: redis6378
command:
["redis-server", "/usr/local/etc/redis/redis.conf"]
volumes:
- ./redis-cluster/6378/conf/redis.conf:/usr/local/etc/redis/redis.conf
- ./redis-cluster/6378/data:/data
ports:
- "6378:6378"
- "17002:17002"
environment:
- TZ=Asia/Shanghai
redis6377:
image: 'redis'
container_name: redis6377
command:
["redis-server", "/usr/local/etc/redis/redis.conf"]
volumes:
- ./redis-cluster/6377/conf/redis.conf:/usr/local/etc/redis/redis.conf
- ./redis-cluster/6377/data:/data
ports:
- "6377:6377"
- "17003:17003"
environment:
- TZ=Asia/Shanghai
Docker 部署 redis集群
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...