AliyunContainerService / redis-cluster

HA Redis Cluster with Sentinel by Docker Compose
Apache License 2.0
453 stars 203 forks source link

容器外应用如何使用容器内redis集群? #17

Open gshockxia opened 6 years ago

gshockxia commented 6 years ago

我映射了本机26379到sentinel的26379端口,使用RedisDesktopManager无法连接sentinel,使用程序也连不上

jackiehope commented 5 years ago

sentinel应该可以连上的把,可以用redis-cli测试一下连哨兵。但是按照这个仓库中的compose文件部署出来的sentinel取到的IP是容器的IP,外部网络无法直接访问的。