Redis Deployment

Deploy Master Service

docker run -p 6379:6379 -e MASTER=true -v /data:/redis-master-data gridworkz/redis:4.0.11

After the service is deployed, obtain the alias connection address of the service. For example: grfe8ab2-0.grfe8ab2

Deploy Sentinel Service

docker run -p 26379:26379 -e SENTINEL=true -e REDIS_MASTER_HOST=grfe8ab2-0.grfe8ab2 gridworkz/redis:4.0.11

After the deployment is complete, set the port alias to: REDIS_SENTINEL_SERVICE

Can be scaled horizontally to any node

Deploy the Slave Service

docker run -p 6379:6379 gridworkz/redis:4.0.11

Needs to depend on sentinel service before starting

Can be scaled to any node