-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (79 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
79 lines (79 loc) · 1.59 KB
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
76
77
78
79
version: "3"
volumes:
postgres-data:
driver: local
services:
master:
image: redis:6.0.4
slave:
image: redis:6.0.4
command: redis-server --slaveof redis-master 6379
links:
- master:redis-master
sentinel_one:
build: redis_sentinel
environment:
- SENTINEL_DOWN_AFTER=5000
- SENTINEL_FAILOVER=5000
- SENTINEL_QUORUM=2
- SENTINEL_PORT=26379
links:
- master:redis-master
- slave
ports:
- "10001:26379"
sentinel_two:
build: redis_sentinel
environment:
- SENTINEL_DOWN_AFTER=5000
- SENTINEL_FAILOVER=5000
- SENTINEL_QUORUM=2
- SENTINEL_PORT=26379
links:
- master:redis-master
- slave
ports:
- "10002:26379"
sentinel_three:
build: redis_sentinel
environment:
- SENTINEL_DOWN_AFTER=5000
- SENTINEL_FAILOVER=5000
- SENTINEL_QUORUM=2
- SENTINEL_PORT=26379
links:
- master:redis-master
- slave
ports:
- "10003:26379"
db:
image: postgres:10.3
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: ankit
POSTGRES_USER: ankit
volumes:
- postgres-data:/var/lib/postgresql/postdata
depends_on:
- master
- slave
- sentinel_one
- sentinel_two
- sentinel_three
backend:
build:
context: ./SpringBoot_RedisSentinel_Client
ports:
- "8090:8090"
links:
- sentinel_one
- sentinel_two
- sentinel_three
depends_on:
- master
- slave
- sentinel_one
- sentinel_two
- sentinel_three
- db