Ryank90 / redis-slave

A Docker image for building a container that aids in operating a Redis slave.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

$ docker run --name some-redis-slave -e REDIS_MASTER_SERVICE_HOST=redis-master -e REDIS_MASTER_SERVICE_PORT=6379 -d ryank90/redis-slave

About

A Docker image for building a container that aids in operating a Redis slave.


Languages

Language:Dockerfile 71.1%Language:Shell 28.9%