Minimalistic Redis Cluster Docker Image.
This Docker image provides a Redis Cluster setup based on the official Redis distribution. It is designed to easily deploy a Redis Cluster environment for various use cases. The image has a small footprint in terms of size.
Run build with Docker build command:
docker build --build-arg redis_version=7.2.4 -t my-image:tag .
To use this Docker image, follow these steps:
- Pull the Docker image from Docker Hub:
docker pull himadieievsv/redis-cluster:latest
- Run the Redis Cluster container:
docker run -d -p 7000-7002:7000-7002 himadieievsv/redis-cluster:latest
This is list of available parameters with its default values.
Environment variable | Default |
---|---|
INITIAL_PORT |
7000 |
MASTERS |
3 |
SLAVES_PER_MASTER |
0 |
IP |
0.0.0.0 |
SENTINEL |
false |
STANDALONE |
false |
BIND_ADDRESS |
0.0.0.0 |
If the flag "SENTINEL=true"
is passed there are 3 Sentinel nodes running on ports 5000 to 5002 matching cluster's master instances.
Check the docker-entrypoint.sh file for details on how parameters influence cluster setup.
Redis 7.2.x version:
Redis 7.0.x version:
Redis 6.2.x version:
Redis 6.0.x version:
himadieievsv/redis-cluster:latest
- points to the latest Redis version build.himadieievsv/redis-cluster:7.2
- points to the latest version among available builds for 7.2.x.himadieievsv/redis-cluster:7.0
- points to the latest version among available builds for 7.0.x.himadieievsv/redis-cluster:6.2
- points to the latest version among available builds for 6.2.x.himadieievsv/redis-cluster:6.0
- points to the latest version among available builds for 6.0.x.
This repo is using the MIT LICENSE.
You can find it in the file LICENSE
Originally inspired by docker-redis-cluster