nineskeletor/misc/images/redis-sentinel/Dockerfile
afornerot e7f2b7185a
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
svg
2023-07-23 15:46:26 +02:00

19 lines
349 B
Docker

FROM redis:6-alpine
ENV SENTINEL_QUORUM 2
ENV SENTINEL_DOWN_AFTER 1000
ENV SENTINEL_FAILOVER 1000
RUN mkdir -p /redis
WORKDIR /redis
COPY sentinel.conf .
COPY sentinel-entrypoint.sh /usr/local/bin/
RUN chown redis:redis /redis/* && \
chmod +x /usr/local/bin/sentinel-entrypoint.sh
EXPOSE 26379
ENTRYPOINT ["sentinel-entrypoint.sh"]