-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
75 lines (69 loc) · 1.51 KB
/
docker-compose.yaml
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:
redis3:
image: "redis:3.2"
command: redis-server
ports:
- "63793:6379"
volumes:
- $PWD/conf/redis3.conf:/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
node_net:
ipv4_address: 172.28.1.3
redis4:
image: "redis:4.0-alpine"
command: redis-server
ports:
- "63794:6379"
volumes:
- $PWD/conf/redis4.conf:/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
node_net:
ipv4_address: 172.28.1.4
redis5:
image: "redis:5.0"
command: redis-server
ports:
- "63795:6379"
volumes:
- $PWD/conf/redis5.conf:/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
node_net:
ipv4_address: 172.28.1.5
redis6:
image: "redis:6.0"
command: redis-server
ports:
- "63796:6379"
volumes:
- $PWD/conf/redis6.conf:/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
node_net:
ipv4_address: 172.28.1.6
redis7:
image: "redis:7.0"
command: redis-server
ports:
- "63797:6379"
volumes:
- $PWD/conf/redis7.conf:/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
node_net:
ipv4_address: 172.28.1.7
# networking for the Redis container
networks:
node_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16