diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2020-07-15 15:15:03 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2020-07-15 15:15:03 -0700 |
commit | 26b611e9732ae655c47f768fa5b8771cb69572f2 (patch) | |
tree | 73e14d97a0d5d53cf61932a686d63244b59d3679 /docker/sentinel_3 | |
parent | 462fd34a7844a49556f8db5c0af23d81a353c9ed (diff) | |
download | redis-py-26b611e9732ae655c47f768fa5b8771cb69572f2.tar.gz |
update configs to bind to explicit addresses. configure sentinel
Diffstat (limited to 'docker/sentinel_3')
-rw-r--r-- | docker/sentinel_3/Dockerfile | 4 | ||||
-rw-r--r-- | docker/sentinel_3/redis.conf | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/docker/sentinel_3/Dockerfile b/docker/sentinel_3/Dockerfile index 2e81a15..f0d48c9 100644 --- a/docker/sentinel_3/Dockerfile +++ b/docker/sentinel_3/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 26381 -CMD redis-server +CMD [ "redis-sentinel", "/usr/local/etc/redis/redis.conf" ] diff --git a/docker/sentinel_3/redis.conf b/docker/sentinel_3/redis.conf index b971b2f..b0827f1 100644 --- a/docker/sentinel_3/redis.conf +++ b/docker/sentinel_3/redis.conf @@ -1,7 +1,7 @@ -pidfile /var/run/sentinel-3.pid +bind sentinel_3 127.0.0.1 port 26381 -daemonize yes -logfile /var/log/redis-sentinel-3 -# 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 |