You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
version: '3.7'
|
|
services:
|
|
redis-master01:
|
|
image: redis
|
|
container_name: redis-master01
|
|
ports:
|
|
- 9603:9603
|
|
command: redis-server /usr/local/etc/redis/redis.conf
|
|
restart: always
|
|
volumes:
|
|
- /opt/epdc/redis/log:/data/log
|
|
- /opt/epdc/redis/data:/data
|
|
- /opt/epdc/redis/conf/redis-master01.conf:/usr/local/etc/redis/redis.conf
|
|
|
|
redis-master02:
|
|
image: redis
|
|
container_name: redis-master02
|
|
ports:
|
|
- 9604:9604
|
|
command: redis-server /usr/local/etc/redis/redis.conf
|
|
restart: always
|
|
volumes:
|
|
- /opt/epdc/redis/log:/data/log
|
|
- /opt/epdc/redis/data:/data
|
|
- /opt/epdc/redis/conf/redis-master02.conf:/usr/local/etc/redis/redis.conf
|
|
|
|
redis-master03:
|
|
image: redis
|
|
container_name: redis-master03
|
|
ports:
|
|
- 9605:9605
|
|
command: redis-server /usr/local/etc/redis/redis.conf
|
|
restart: always
|
|
volumes:
|
|
- /opt/epdc/redis/log:/data/log
|
|
- /opt/epdc/redis/data:/data
|
|
- /opt/epdc/redis/conf/redis-master03.conf:/usr/local/etc/redis/redis.conf
|
|
|