Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dalechyn/redis-compose
- Owner: dalechyn
- Created: 2020-05-09T14:31:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-10T00:59:48.000Z (about 4 years ago)
- Last Synced: 2024-10-04T19:52:25.023Z (about 2 months ago)
- Homepage:
- Size: 177 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-26381If 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).~~