Dockerfile 310 B

1234567891011
  1. FROM redis:3
  2. EXPOSE 26379
  3. COPY sentinel.conf /etc/redis/sentinel.conf
  4. RUN chown redis:redis /etc/redis/sentinel.conf
  5. ENV SENTINEL_QUORUM 2
  6. ENV SENTINEL_NAME mysentinel
  7. ENV SENTINEL_DOWN_AFTER 30000
  8. ENV SENTINEL_FAILOVER 180000
  9. COPY sentinel-entrypoint.sh /usr/local/bin/
  10. ENTRYPOINT ["sentinel-entrypoint.sh"]