20 lines
399 B
Text
20 lines
399 B
Text
|
FROM redis:4.0
|
||
|
|
||
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||
|
COPY sentinel.conf /usr/local/etc/redis/sentinel.conf
|
||
|
|
||
|
|
||
|
ENV SENTINEL_QUORUM=2 \
|
||
|
SENTINEL_DOWN_AFTER=1000 \
|
||
|
SENTINEL_FAILOVER=1000 \
|
||
|
REDIS_MASTER_NAME=redismaster \
|
||
|
REDIS_MASTER=redis \
|
||
|
REDIS_SENTINEL_IP=redissentinel \
|
||
|
REDIS_SENTINEL_PORT=26379
|
||
|
|
||
|
|
||
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||
|
|
||
|
EXPOSE 6379
|
||
|
CMD ["redis-server"]
|