https://github.com/ryank90/redis-slave
A Docker image for building a container that aids in operating a Redis slave.
https://github.com/ryank90/redis-slave
Last synced: 6 months ago
JSON representation
A Docker image for building a container that aids in operating a Redis slave.
- Host: GitHub
- URL: https://github.com/ryank90/redis-slave
- Owner: Ryank90
- Created: 2019-03-16T17:37:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-17T21:59:16.000Z (over 7 years ago)
- Last Synced: 2025-06-27T03:11:59.558Z (about 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redis Slave (Docker)
A docker image for operating a Redis slave.
## Environment variables
The image expects two environment variables to allow the redis instance to connect to a master:
| Environment Variable | Description | Default |
| ------------------------- | -------------------------------- | ------------ |
| REDIS_MASTER_SERVICE_HOST | The DNS name of the redis master | redis-master |
| REDIS_MASTER_SERVICE_PORT | The TCP port of the redis master | 6379 |
## Usage
Simply run the container with the environment variables set like so:
```bash
$ docker run --name some-redis-slave -e REDIS_MASTER_SERVICE_HOST=redis-master -e REDIS_MASTER_SERVICE_PORT=6379 -d ryank90/redis-slave
```