Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compose configuration changes #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ The redis-sentinel image (ahfeel/rancher-redis-cluster-sentinel on Docker hub) s
### Redis-Server

`REDIS_TIMEOUT=3600`
(0 by default)
(0 by default)
`REDIS_APPENDONLY=yes`
(no by default)
(no by default)
`REDIS_PASSWORD=a-secure-password`
(empty by default)

### Redis-Sentinel

```
SENTINEL_DOWN_AFTER_MILLISECONDS=5000
SENTINEL_FAILOVER_TIMEOUT=60000
`SENTINEL_DOWN_AFTER_MILLISECONDS=5000`
(empty by default)
`SENTINEL_FAILOVER_TIMEOUT=60000`
(empty by default)
`REDIS_PASSWORD=a-secure-password`
(empty by default)
```
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ version: '2'
services:

redis-sentinel:
image: uonappdev.azurecr.io/cache/redis-sentinel:dev
image: uonappdev.azurecr.io/cache/redis-sentinel:${VERSION}
environment:
SENTINEL_DOWN_AFTER_MILLISECONDS: '5000'
REDIS_PASSWORD: redis-in-docker-secret-password
stdin_open: true
tty: true
labels:
Expand All @@ -15,7 +16,9 @@ services:
io.rancher.container.pull_image: always

redis-server:
image: uonappdev.azurecr.io/cache/redis-server:dev
image: uonappdev.azurecr.io/cache/redis-server:${VERSION}
environment:
REDIS_PASSWORD: redis-in-docker-secret-password
stdin_open: true
volumes:
- /data_nfs/cache-data:/data:rw
Expand Down