-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
112 lines (102 loc) · 2.22 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3'
networks:
redisclusternet:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/16
services:
redis1:
container_name: redis-1
image: redis:${REDIS_VER}
ports:
- 7001:7001
volumes:
- ./configs/redis-1.conf:/etc/redis/redis.conf
command:
- redis-server
- /etc/redis/redis.conf
networks:
redisclusternet:
ipv4_address: 10.0.0.11
redis2:
container_name: redis-2
image: redis:${REDIS_VER}
ports:
- 7002:7002
volumes:
- ./configs/redis-2.conf:/etc/redis/redis.conf
command:
- redis-server
- /etc/redis/redis.conf
depends_on:
- redis1
networks:
redisclusternet:
ipv4_address: 10.0.0.12
redis3:
container_name: redis-3
image: redis:${REDIS_VER}
ports:
- 7003:7003
volumes:
- ./configs/redis-3.conf:/etc/redis/redis.conf
command:
- redis-server
- /etc/redis/redis.conf
depends_on:
- redis2
networks:
redisclusternet:
ipv4_address: 10.0.0.13
redis4:
container_name: redis-4
image: redis:${REDIS_VER}
ports:
- 7004:7004
volumes:
- ./configs/redis-4.conf:/etc/redis/redis.conf
command:
- redis-server
- /etc/redis/redis.conf
networks:
redisclusternet:
ipv4_address: 10.0.0.14
redis5:
container_name: redis-5
image: redis:${REDIS_VER}
ports:
- 7005:7005
volumes:
- ./configs/redis-5.conf:/etc/redis/redis.conf
command:
- redis-server
- /etc/redis/redis.conf
depends_on:
- redis1
networks:
redisclusternet:
ipv4_address: 10.0.0.15
redis6:
container_name: redis-6
image: redis:${REDIS_VER}
ports:
- 7006:7006
volumes:
- ./configs/redis-6.conf:/etc/redis/redis.conf
command:
- redis-server
- /etc/redis/redis.conf
depends_on:
- redis2
networks:
redisclusternet:
ipv4_address: 10.0.0.16
app:
image: python:3.8-alpine3.10
volumes:
- ./app:/usr/local/cluster-tester:z
entrypoint: /usr/local/cluster-tester/docker-entrypoint.sh
networks:
redisclusternet:
ipv4_address: 10.0.0.20