summaryrefslogtreecommitdiff
path: root/docker/sentinel_2
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2020-07-15 15:15:03 -0700
committerAndy McCurdy <andy@andymccurdy.com>2020-07-15 15:15:03 -0700
commit26b611e9732ae655c47f768fa5b8771cb69572f2 (patch)
tree73e14d97a0d5d53cf61932a686d63244b59d3679 /docker/sentinel_2
parent462fd34a7844a49556f8db5c0af23d81a353c9ed (diff)
downloadredis-py-26b611e9732ae655c47f768fa5b8771cb69572f2.tar.gz
update configs to bind to explicit addresses. configure sentinel
Diffstat (limited to 'docker/sentinel_2')
-rw-r--r--docker/sentinel_2/Dockerfile4
-rw-r--r--docker/sentinel_2/redis.conf10
2 files changed, 7 insertions, 7 deletions
diff --git a/docker/sentinel_2/Dockerfile b/docker/sentinel_2/Dockerfile
index cd59777..dc3c332 100644
--- a/docker/sentinel_2/Dockerfile
+++ b/docker/sentinel_2/Dockerfile
@@ -1,7 +1,7 @@
FROM redis-py-base:latest
-COPY redis.conf /etc/conf/redis/redis.conf
+COPY redis.conf /usr/local/etc/redis/redis.conf
EXPOSE 26380
-CMD redis-server
+CMD [ "redis-sentinel", "/usr/local/etc/redis/redis.conf" ]
diff --git a/docker/sentinel_2/redis.conf b/docker/sentinel_2/redis.conf
index 9ab8934..264443c 100644
--- a/docker/sentinel_2/redis.conf
+++ b/docker/sentinel_2/redis.conf
@@ -1,7 +1,7 @@
-pidfile /var/run/sentinel-2.pid
+bind sentinel_2 127.0.0.1
port 26380
-daemonize yes
-logfile /var/log/redis-sentinel-2
-# short timeout for sentinel tests
-sentinel down-after-milliseconds mymaster 500
+sentinel monitor redis-py-test master 6379 2
+sentinel down-after-milliseconds redis-py-test 5000
+sentinel failover-timeout redis-py-test 60000
+sentinel parallel-syncs redis-py-test 1