-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathdocker-compose.yml
102 lines (102 loc) · 3.01 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
services:
redis-standalone-1:
image: redis/redis-stack-server:7.4.0-v1
ports:
- "7001:7001"
volumes:
- ./config/redis/standalone-1.conf:/redis-stack.conf
- /data/redis/7001:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 3m
redis-standalone-2:
image: redis/redis-stack-server:7.4.0-v1
ports:
- "7002:7002"
volumes:
- ./config/redis/standalone-2.conf:/redis-stack.conf
- /data/redis/7002:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 3m
redis-node-01:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7101" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- /data/redis/7101:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 3m
redis-node-02:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7102" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- /data/redis/7102:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 3m
redis-node-03:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7103" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- /data/redis/7103:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 3m
redis-node-04:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7104" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- /data/redis/7104:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 3m
redis-node-05:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7105" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- /data/redis/7105:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 3m
redis-node-06:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7106" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- /data/redis/7106:/data
env_file:
- ./.env.redis
restart: unless-stopped
stop_grace_period: 3m
redis-cluster-creator:
image: redis/redis-stack-server:7.4.0-v1
command: bash -c 'redis-cli -a "$$REDIS_PASSWORD" --cluster create $$REDIS_PUBLIC_IP:7101 $$REDIS_PUBLIC_IP:7102 $$REDIS_PUBLIC_IP:7103 $$REDIS_PUBLIC_IP:7104 $$REDIS_PUBLIC_IP:7105 $$REDIS_PUBLIC_IP:7106 --cluster-replicas 0 --cluster-yes'
network_mode: "host"
depends_on:
- redis-node-01
- redis-node-02
- redis-node-03
- redis-node-04
- redis-node-05
- redis-node-06
env_file:
- ./.env.redis