12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- version: '3'
- services:
- sentinel1:
- image: redis:5.0.11
- container_name: redis-sentinel-1
- ports:
- - 0.0.0.0: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:
- - 0.0.0.0:26380:26380
- 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:
- - 0.0.0.0:26381:26381
- command: redis-sentinel /usr/local/etc/redis/sentinel.conf
- volumes:
- - ./sentinel3.conf:/usr/local/etc/redis/sentinel.conf
- sentinel4:
- image: redis:5.0.11
- container_name: redis-sentinel-4
- ports:
- - 0.0.0.0:26382:26381
- command: redis-sentinel /usr/local/etc/redis/sentinel.conf
- volumes:
- - ./sentinel4.conf:/usr/local/etc/redis/sentinel.conf
- sentinel5:
- image: redis:5.0.11
- container_name: redis-sentinel-5
- ports:
- - 0.0.0.0:26383:26381
- command: redis-sentinel /usr/local/etc/redis/sentinel.conf
- volumes:
- - ./sentinel5.conf:/usr/local/etc/redis/sentinel.conf
- networks:
- default:
- external:
- name: redis_default
|