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.
27 lines
937 B
27 lines
937 B
version: '3.7'
|
|
services:
|
|
sentinel1:
|
|
image: redis
|
|
container_name: redis-sentinel-1
|
|
ports:
|
|
- 9605:6379
|
|
- 26379:26379
|
|
command: redis-sentinel /usr/local/etc/redis/sentinel.conf
|
|
volumes:
|
|
- /opt/epdc/redis/sentinel/conf/sentinel1.conf:/usr/local/etc/redis/sentinel.conf
|
|
- /opt/epdc/redis/sentinel/data:/data
|
|
- /opt/epdc/redis/sentinel/log:/usr/local/redis/sentinel/log
|
|
- /opt/epdc/redis/sentinel/dir:/usr/local/redis/sentinel
|
|
|
|
sentinel3:
|
|
image: redis
|
|
container_name: redis-sentinel-3
|
|
ports:
|
|
- 9606:6379
|
|
- 26380:26379
|
|
command: redis-sentinel /usr/local/etc/redis/sentinel.conf
|
|
volumes:
|
|
- /opt/epdc/redis/sentinel/conf/sentinel2.conf:/usr/local/etc/redis/sentinel.conf
|
|
- /opt/epdc/redis/sentinel/data2:/data
|
|
- /opt/epdc/redis/sentinel/log2:/usr/local/redis/sentinel/log
|
|
- /opt/epdc/redis/sentinel/dir2:/usr/local/redis/sentinel
|
|
|