Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dalechyn/redis-compose

Simple redis network using docker and bitnami images.
https://github.com/dalechyn/redis-compose

Last synced: 26 days ago
JSON representation

Simple redis network using docker and bitnami images.

Awesome Lists containing this project

README

        

# redis-compose
Stupidly simple, scalable redis cluster using `bitnami` images, for deployment on single host.
Nice for redis/docker starters.

Also note that `injector` container injects ReJSON module and enables keyevent notifications.

## WARNING
~~Don't mind using that in production - only basic security things such as master and replica passwords are covered.
You should guard your containers and network by yourself.~~
Don't forget to fill the .env file

## Usage
Before starting a cluster, make sure there is "data" directory chowned to user 1001
```bash
docker-compose up --scale sentinel=3
```

## Ports
By default, the layout is next:
1. Master binds to localhost:6379
2. Slave binds to localhost:6380
3. Sentinel binds to localhost:26379-26381

If you want to scale services and use them in development, don't forget to extend range or ports in `docker-compose.yaml`

## Known issues
1. ~~Master and Replica passwords have to be equal, otherwise Sentinel marks slave as subjectively down. More [#1](https://github.com/h0tw4t3r/redis-compose/issues/1).~~
2. ~~After failovering master, it fails to sync with new master. More [#2](https://github.com/h0tw4t3r/redis-compose/issues/2).~~