-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose 3.yml
66 lines (66 loc) · 1.46 KB
/
docker-compose 3.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
Redis-Master-1:
command:
- redis-server
- /usr/local/etc/redis/redis.conf
- --port 6379
net: "host"
tty: true
image: 192.168.56.10:5000/my_redis
mem_limit: 1000000000
labels:
io.rancher.scheduler.affinity:host_label: Node=Node1
Redis-Master-2:
command:
- redis-server
- /usr/local/etc/redis/redis.conf
- --port 6379
net: "host"
tty: true
image: 192.168.56.10:5000/my_redis
mem_limit: 1000000000
labels:
io.rancher.scheduler.affinity:host_label: Node=Node2
Redis-Master-3:
command:
- redis-server
- /usr/local/etc/redis/redis.conf
- --port 6379
net: "host"
tty: true
image: 192.168.56.10:5000/my_redis
mem_limit: 1000000000
labels:
io.rancher.scheduler.affinity:host_label: Node=Node3
Redis-Slave-1:
command:
- redis-server
- /usr/local/etc/redis/redis.conf
- --port 7379
net: "host"
tty: true
image: 192.168.56.10:5000/my_redis
mem_limit: 1000000000
labels:
io.rancher.scheduler.affinity:host_label: Node=Node1
Redis-Slave-2:
command:
- redis-server
- /usr/local/etc/redis/redis.conf
- --port 7379
net: "host"
tty: true
image: 192.168.56.10:5000/my_redis
mem_limit: 1000000000
labels:
io.rancher.scheduler.affinity:host_label: Node=Node2
Redis-Slave-3:
command:
- redis-server
- /usr/local/etc/redis/redis.conf
- --port 7379
net: "host"
tty: true
image: 192.168.56.10:5000/my_redis
mem_limit: 1000000000
labels:
io.rancher.scheduler.affinity:host_label: Node=Node3