-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsentinels-compose.yml
49 lines (45 loc) · 1.26 KB
/
sentinels-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '2'
services:
sentinel1:
image: 'docker.iranrepo.ir/bitnami/redis-sentinel:6.2.12'
environment:
- REDIS_MASTER_HOST=master-redis
- REDIS_SENTINEL_QUORUM=2
- REDIS_SENTINEL_PORT_NUMBER=26379
- REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS=5000
- REDIS_SENTINEL_FAILOVER_TIMEOUT=10000
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '1001:26379'
networks:
- compose-net
sentinel2:
image: 'docker.iranrepo.ir/bitnami/redis-sentinel:6.2.12'
environment:
- REDIS_MASTER_HOST=master-redis
- REDIS_SENTINEL_QUORUM=2
- REDIS_SENTINEL_PORT_NUMBER=26379
- REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS=5000
- REDIS_SENTINEL_FAILOVER_TIMEOUT=10000
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '1002:26379'
networks:
- compose-net
sentinel3:
image: 'docker.iranrepo.ir/bitnami/redis-sentinel:6.2.12'
environment:
- REDIS_MASTER_HOST=master-redis
- REDIS_SENTINEL_QUORUM=2
- REDIS_SENTINEL_PORT_NUMBER=26379
- REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS=5000
- REDIS_SENTINEL_FAILOVER_TIMEOUT=10000
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '1003:26379'
networks:
- compose-net
networks:
compose-net:
name: sentinel
external: true