-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (68 loc) · 1.53 KB
/
docker-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3'
services:
otoroshi:
image: maif/otoroshi:1.4.21-dev-1583163375
environment:
- APP_STORAGE=redis-sentinel-lf
- REDIS_SENTINELS_LF_MEMBERS=sentinel1:26379,sentinel2:26379,sentinel3:26379
- REDIS_SENTINELS_LF_MASTER=my_redis_master
- OTOROSHI_INITIAL_ADMIN_PASSWORD=password
- PORT=8080
expose:
- 8080
ports:
- 8080:8080
redis1:
image: redis:3.2-alpine
expose:
- 6379
volumes:
- ./data/redis1-data:/data
ports:
- 6401:6379
sentinel1:
image: redis:3.2-alpine
expose:
- 26379
ports:
- 26401:26379
volumes:
- ./sentinel1.conf:/etc/sentinel.conf
- ./data/sentinel1-data:/data
command: redis-server /etc/sentinel.conf --sentinel
redis2:
image: redis:3.2-alpine
expose:
- 6379
ports:
- 6402:6379
volumes:
- ./data/redis2-data:/data
sentinel2:
image: redis:3.2-alpine
expose:
- 26379
ports:
- 26402:26379
volumes:
- ./sentinel2.conf:/etc/sentinel.conf
- ./data/sentinel2-data:/data
command: redis-server /etc/sentinel.conf --sentinel
redis3:
image: redis:3.2-alpine
expose:
- 6379
ports:
- 6403:6379
volumes:
- ./data/redis3-data:/data
sentinel3:
image: redis:3.2-alpine
expose:
- 26379
ports:
- 26403:26379
volumes:
- ./sentinel3.conf:/etc/sentinel.conf
- ./data/sentinel3-data:/data
command: redis-server /etc/sentinel.conf --sentinel