123456789101112131415161718192021222324252627282930 |
- version: '3'
- services:
- sentinel1:
- image: redis:5.0.11
- container_name: redis-sentinel-1
- ports:
- - 26379:26379
- command: redis-sentinel /usr/local/etc/redis/sentinel.conf
- volumes:
- - ./sentinel1.conf:/usr/local/etc/redis/sentinel.conf
- sentinel2:
- image: redis:5.0.11
- container_name: redis-sentinel-2
- ports:
- - 26380:26379
- command: redis-sentinel /usr/local/etc/redis/sentinel.conf
- volumes:
- - ./sentinel2.conf:/usr/local/etc/redis/sentinel.conf
- sentinel3:
- image: redis:5.0.11
- container_name: redis-sentinel-3
- ports:
- - 26381:26379
- command: redis-sentinel /usr/local/etc/redis/sentinel.conf
- volumes:
- - ./sentinel3.conf:/usr/local/etc/redis/sentinel.conf
- networks:
- default:
- external:
- name: redis_default
|