Unverified Commit ecc22588 authored by hotwater's avatar hotwater

add sentinel password, and fix master db init

parent 29653d4d
Pipeline #1269 canceled with stages
......@@ -4,8 +4,10 @@ services:
master:
image: bitnami/redis
volumes:
- ./data:/bitnami/redis/data
- ./modules:/bitnami/redis/modules
environment:
- REDIS_MASTER_HOST=master
- REDIS_REPLICATION_MODE=master
- REDIS_PASSWORD=${MASTER_PASSWORD}
ports:
......@@ -48,6 +50,7 @@ services:
- REDIS_MASTER_PASSWORD=${MASTER_PASSWORD}
- REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS=6000
- REDIS_SENTINEL_FAILOVER_TIMEOUT=6000
- REDIS_SENTINEL_PASSWORD=${SENTINEL_PASSWORD}
depends_on:
- master
- slave
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment