-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
62 lines (54 loc) · 1.28 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
version: '3'
services:
rabbitmq:
image: rabbitmq:3-management-alpine
ports:
- 5672:5672
- 15672:15672
redis1:
image: redis:7
command: redis-server /etc/redis.conf
ports:
- 6379:6379
volumes:
- ./redis.conf:/etc/redis.conf
redis2:
image: redis:7
command: redis-server /etc/redis.conf
ports:
- 6380:6379
volumes:
- ./redis.conf:/etc/redis.conf
redis3:
image: redis:7
command: redis-server /etc/redis.conf
ports:
- 6381:6379
volumes:
- ./redis.conf:/etc/redis.conf
redis4:
image: redis:7
command: redis-server /etc/redis.conf
volumes:
- ./redis.conf:/etc/redis.conf
redis5:
image: redis:7
command: redis-server /etc/redis.conf
volumes:
- ./redis.conf:/etc/redis.conf
redis6:
image: redis:7
command: redis-server /etc/redis.conf
volumes:
- ./redis.conf:/etc/redis.conf
cluster-setup:
image: redis:7
depends_on:
- redis1
- redis2
- redis3
- redis4
- redis5
- redis6
restart: "no"
entrypoint: [ "bash", "-c", "redis-cli --cluster create redis1:6379 redis2:6379 redis3:6379 redis4:6379 redis5:6379 redis6:6379 --cluster-replicas 1 --cluster-yes"]