-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Redis cluster docker yml to separate file (#11162)
- Loading branch information
Showing
5 changed files
with
100 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
version: "2" | ||
services: | ||
redis-cluster-setup: | ||
image: redis:5 | ||
command: redis-cli --cluster create 172.20.0.31:7001 172.20.0.32:7002 172.20.0.33:7003 172.20.0.34:7004 172.20.0.35:7005 172.20.0.36:7006 --cluster-yes --cluster-replicas 1 | ||
networks: | ||
cluster_network: | ||
ipv4_address: 172.20.0.30 | ||
depends_on: | ||
- redis-cluster-1 | ||
- redis-cluster-2 | ||
- redis-cluster-3 | ||
- redis-cluster-4 | ||
- redis-cluster-5 | ||
- redis-cluster-6 | ||
|
||
redis-cluster-1: | ||
image: redis:5 | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
ports: | ||
- "7001:7001" | ||
volumes: | ||
- ./tools/redis-tests/redis-cluster-1.conf:/usr/local/etc/redis/redis.conf | ||
networks: | ||
cluster_network: | ||
ipv4_address: 172.20.0.31 | ||
|
||
redis-cluster-2: | ||
image: redis:5 | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
ports: | ||
- "7002:7002" | ||
volumes: | ||
- ./tools/redis-tests/redis-cluster-2.conf:/usr/local/etc/redis/redis.conf | ||
networks: | ||
cluster_network: | ||
ipv4_address: 172.20.0.32 | ||
|
||
redis-cluster-3: | ||
image: redis:5 | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
ports: | ||
- "7003:7003" | ||
volumes: | ||
- ./tools/redis-tests/redis-cluster-3.conf:/usr/local/etc/redis/redis.conf | ||
networks: | ||
cluster_network: | ||
ipv4_address: 172.20.0.33 | ||
|
||
redis-cluster-4: | ||
image: redis:5 | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
ports: | ||
- "7004:7004" | ||
volumes: | ||
- ./tools/redis-tests/redis-cluster-4.conf:/usr/local/etc/redis/redis.conf | ||
networks: | ||
cluster_network: | ||
ipv4_address: 172.20.0.34 | ||
|
||
redis-cluster-5: | ||
image: redis:5 | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
ports: | ||
- "7005:7005" | ||
volumes: | ||
- ./tools/redis-tests/redis-cluster-5.conf:/usr/local/etc/redis/redis.conf | ||
networks: | ||
cluster_network: | ||
ipv4_address: 172.20.0.35 | ||
|
||
redis-cluster-6: | ||
image: redis:5 | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
ports: | ||
- "7006:7006" | ||
volumes: | ||
- ./tools/redis-tests/redis-cluster-6.conf:/usr/local/etc/redis/redis.conf | ||
networks: | ||
cluster_network: | ||
ipv4_address: 172.20.0.36 | ||
|
||
networks: | ||
cluster_network: | ||
driver: bridge | ||
ipam: | ||
config: | ||
- subnet: 172.20.0.0/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters