Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
packages
parrot
software-center-team
software-center-redis
Commits
ecc22588
Unverified
Commit
ecc22588
authored
Oct 10, 2020
by
hotwater
Browse files
add sentinel password, and fix master db init
parent
29653d4d
Pipeline
#1269
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
docker-compose.yaml
View file @
ecc22588
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment