|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
redis-slave01:
|
|
|
|
image: redis
|
|
|
|
container_name: redis-slave01
|
|
|
|
ports:
|
|
|
|
- 9603:9603
|
|
|
|
command: redis-server /usr/local/etc/redis/redis.conf
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /opt/epdc/redis/log:/data/log
|
|
|
|
- /opt/epdc/redis/data:/data
|
|
|
|
- /opt/epdc/redis/conf/redis-slave01.conf:/usr/local/etc/redis/redis.conf
|
|
|
|
|
|
|
|
redis-slave02:
|
|
|
|
image: redis
|
|
|
|
container_name: redis-slave02
|
|
|
|
ports:
|
|
|
|
- 9604:9604
|
|
|
|
command: redis-server /usr/local/etc/redis/redis.conf
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /opt/epdc/redis/log:/data/log
|
|
|
|
- /opt/epdc/redis/data:/data
|
|
|
|
- /opt/epdc/redis/conf/redis-slave02.conf:/usr/local/etc/redis/redis.conf
|
|
|
|
|
|
|
|
redis-slave03:
|
|
|
|
image: redis
|
|
|
|
container_name: redis-slave03
|
|
|
|
ports:
|
|
|
|
- 9605:9605
|
|
|
|
command: redis-server /usr/local/etc/redis/redis.conf
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /opt/epdc/redis/log:/data/log
|
|
|
|
- /opt/epdc/redis/data:/data
|
|
|
|
- /opt/epdc/redis/conf/redis-slave03.conf:/usr/local/etc/redis/redis.conf
|