Sign inSign up

tommy351/redis-cluster

By tommy351

Updated about 1 year ago

Redis cluster

Image
10

100K+

tommy351/redis-cluster repository overview

docker-redis-cluster

Build Status

A Redis cluster Docker image. This image is for testing environment. DO NOT use it for production.

Usage

Start a cluster. It will start 6 Redis servers listening on 7000~7005 port and a supervisor to make sure all servers started. After all servers are started, redis-trib will create a Redis cluster.

docker run -p 7000:7000 -p 7001:7001 -p 7002:7002 -p 7003:7003 -p 7004:7004 -p 7005:7005 tommy351/redis-cluster:3.2

You can mount a data volume on /data.

docker run -v /some/path/:/data tommy351/redis-cluster:3.2

If you are using Redis 4.0 and above, you can set CLUSTER_ANNOUNCE_IP. (See redis#2527 for more details)

docker run -e CLUSTER_ANNOUNCE_IP=127.0.0.1 tommy351/redis-cluster:4.0

License

MIT

Tag summary

Content type

Image

Digest

sha256:19247e941

Size

61.2 MB

Last updated

about 1 year ago

docker pull tommy351/redis-cluster