Skip to content

Docker image of redis sentinel from official redis alpine image

License

Notifications You must be signed in to change notification settings

Drivetech/redis-sentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-sentinel

dockeri.co

Build Status

Docker image of redis sentinel from official redis alpine image

Supported tags and respective Dockerfile links

Usage with docker run

docker run -d --name redis-sentinel-01 --link some-redis:master -p 32801:26379 lgatica/redis-sentinel
docker run -d --name redis-sentinel-02 --link some-redis:master -p 32802:26379 lgatica/redis-sentinel
docker run -d --name redis-sentinel-03 --link some-redis:master -p 32803:26379 lgatica/redis-sentinel
# Or with AUTH
docker run -d --name redis-sentinel-01 --link some-redis:master -p 32801:26379 -e REDIS_PASSWORD=redis1234 lgatica/redis-sentinel

Usage with docker-compose

version: '2'

services:
  master:
    image: redis:4.0.9-alpine
    command: redis-server --appendonly yes --masterauth $REDIS_PASSWORD --requirepass $REDIS_PASSWORD
    volumes:
      - $PWD/data/master:/data
  slave:
    image: redis:4.0.9-alpine
    command: redis-server --appendonly yes --slaveof master 6379 --masterauth $REDIS_PASSWORD --requirepass $REDIS_PASSWORD
    volumes:
      - $PWD/data/slave:/data
    depends_on:
      - master
    links:
      - master
  sentinel:
    image: lgatica/redis-sentinel
    environment:
      REDIS_PASSWORD: $REDIS_PASSWORD
    depends_on:
      - master
    links:
      - master
    ports:
      - "26379"

About

Docker image of redis sentinel from official redis alpine image

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published