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.
43 lines
1.3 KiB
43 lines
1.3 KiB
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
|
|
|