Skip to content

Instantly share code, notes, and snippets.

@vitorreus
vitorreus / create-cluster.sh
Created January 10, 2018 12:12
High Availability Redis cluster using Sentinel deployed in Docker Swarm
#!/bin/bash
#This script creates 1 master, 2 slaves and 3 sentinels services in docker swarm.
docker network create \
--driver overlay \
testes_network
SWARM_MASTER=192.168.205.125
#Master