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.
32 lines
1021 B
32 lines
1021 B
6 years ago
|
version: '3.7'
|
||
|
services:
|
||
|
sentinel1:
|
||
|
image: redis
|
||
|
container_name: redis-sentinel-1
|
||
|
command: redis-sentinel /usr/local/etc/redis/sentinel.conf
|
||
|
volumes:
|
||
|
- /mnt/epdc/redis/sentinel/conf/sentinel1.conf:/usr/local/etc/redis/sentinel.conf
|
||
|
- /mnt/epdc/redis/sentinel/data:/data
|
||
|
- /mnt/epdc/redis/sentinel/log:/usr/local/redis/sentinel/log
|
||
|
- /mnt/epdc/redis/sentinel/dir:/usr/local/redis/sentinel
|
||
|
networks:
|
||
|
epdc_network:
|
||
|
ipv4_address: 172.19.0.13
|
||
|
|
||
|
sentinel3:
|
||
|
image: redis
|
||
|
container_name: redis-sentinel-3
|
||
|
command: redis-sentinel /usr/local/etc/redis/sentinel.conf
|
||
|
volumes:
|
||
|
- /mnt/epdc/redis/sentinel/conf/sentinel2.conf:/usr/local/etc/redis/sentinel.conf
|
||
|
- /mnt/epdc/redis/sentinel/data2:/data
|
||
|
- /mnt/epdc/redis/sentinel/log2:/usr/local/redis/sentinel/log
|
||
|
- /mnt/epdc/redis/sentinel/dir2:/usr/local/redis/sentinel
|
||
|
networks:
|
||
|
epdc_network:
|
||
|
ipv4_address: 172.19.0.14
|
||
|
|
||
|
networks:
|
||
|
epdc_network:
|
||
|
external: true
|