1 Star 4 Fork 2

little_wear/docker-compose+redis-sentinel+spring-boot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
little_wear 提交于 2021-01-17 23:04 . init
version: '3'
services:
redis1:
image: redis:6.0
container_name: redis1
command: redis-server /etc/redis/redis.conf --requirepass 123456 --masterauth 123456
volumes:
- ./data/redis1:/data
- ./conf/redis1.conf:/etc/redis/redis.conf
network_mode: "host"
redis2:
image: redis:6.0
container_name: redis2
volumes:
- ./data/redis2:/data
- ./conf/redis2.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf --slaveof 192.168.147.11 6380 --requirepass 123456 --masterauth 123456
network_mode: "host"
redis3:
image: redis:6.0
container_name: redis3
volumes:
- ./data/redis3:/data
- ./conf/redis3.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf --slaveof 192.168.147.11 6380 --requirepass 123456 --masterauth 123456
network_mode: "host"
sentinel1:
image: redis:6.0
container_name: redis-sentinel-1
command: redis-sentinel /etc/redis/sentinel.conf
volumes:
- ./conf/sentinel1.conf:/etc/redis/sentinel.conf
network_mode: "host"
sentinel2:
image: redis:6.0
container_name: redis-sentinel-2
command: redis-sentinel /etc/redis/sentinel.conf
volumes:
- ./conf/sentinel2.conf:/etc/redis/sentinel.conf
network_mode: "host"
sentinel3:
image: redis:6.0
container_name: redis-sentinel-3
command: redis-sentinel /etc/redis/sentinel.conf
volumes:
- ./conf/sentinel3.conf:/etc/redis/sentinel.conf
network_mode: "host"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/little_wear/docker-compose-redis-sentinel-spring-boot.git
[email protected]:little_wear/docker-compose-redis-sentinel-spring-boot.git
little_wear
docker-compose-redis-sentinel-spring-boot
docker-compose+redis-sentinel+spring-boot
master

搜索帮助