https://github.com/s0rg/redis-cluster-compose
docker-compose for any-nodes redis-cluster
https://github.com/s0rg/redis-cluster-compose
cluster docker-compose example redis
Last synced: 7 months ago
JSON representation
docker-compose for any-nodes redis-cluster
- Host: GitHub
- URL: https://github.com/s0rg/redis-cluster-compose
- Owner: s0rg
- License: mit
- Created: 2020-10-20T20:03:01.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T15:17:49.000Z (about 2 years ago)
- Last Synced: 2025-01-18T05:31:04.566Z (9 months ago)
- Topics: cluster, docker-compose, example, redis
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redis-cluster-compose
Any-node redis cluster in a single docker-compose.
By default it starts 9-nodes cluster, with 3 master nodes.
If you want other nodes amount:
- add or remove nodes (please note that your new nodes amount, **MUST** be divisible by 3)
- edit `nodes` argument for `cluster-up.sh`note: nodes names (`redis_node_N`) are important, if you want/need to change them,
dont forget to modify `node_name` function in `cluster-up.sh` accordingly.# usage
```shell
docker compose up
```# connections scheme
This scheme was made by [decompose](https://github.com/s0rg/decompose) tool:

# license
MIT