Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eirikur-ari/redis-test-cluster

Docker compose setup with Redis Cluster and Redisinsight
https://github.com/eirikur-ari/redis-test-cluster

docker-compose redis-cluster redisinsight

Last synced: 2 days ago
JSON representation

Docker compose setup with Redis Cluster and Redisinsight

Awesome Lists containing this project

README

        

# Redis Cluster
This project is modelled after the setup from the blog post: [Create Redis Cluster by Docker Compose](https://fissssssh.aiursoft.cn/posts/create-redis-cluster-by-docker-compose/) by [fissssssh](https://github.com/fissssssh). It comes with some minor adjustments that made my experiments easier

## Components
This setup consists out of the following components

* redis, version 7.0.10-alpine
* redisinsight, version 1.13.1

### Redisinsight
**Web UI: http://localhost:8001**

## Starting for the first time

### 1. Create Config
Will create data folder with required configuration for each container

```
sh create-config.sh
```

### 2. Change permission
Fix RedisInsights volume ownership
```
chown -R 1001 ./data/redisinsight/db
```

### 3. Create and start containers
```
docker-compose up -d
```

### 4. Create the cluster
Will create a cluster of 3 primary shards with 1 replica node per shard
```
sh create-cluster.sh
```