1 Star 0 Fork 0

piao/es-logstash-kibana

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.redis.yml 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
piao 提交于 2019-12-31 14:52 . first commit .
version: "3.6"
services:
redis-master1: &redis-master
image: daocloud.io/library/redis:5.0 # 基础镜像
working_dir: /config # 工作目录
stdin_open: true # 标准输入打开
tty: true
privileged: true # 拥有容器内命令执行的权限
volumes: ["./redis:/config"] # 映射数据卷,配置目录
entrypoint: # 设置服务默认的启动程序
- /bin/bash
- redis.sh
container_name: redis-master1 # 容器服务名
environment: # 环境变量
- PORT=6391 # 跟 config/nodes-6391.conf 里的配置一样的端口
expose: # 映射端口,对外提供服务
- "6391" # redis 的服务端口
- "16391" # redis 集群监控端口
networks: # docker 网络设置
elknet:
ipv4_address: 172.16.10.102
redis-master2:
<<: *redis-master
container_name: redis-master2
environment:
- PORT=6392
networks:
elknet:
ipv4_address: 172.16.10.103
expose:
- "6392"
- "16392"
redis-master3:
<<: *redis-master
container_name: redis-master3
environment:
- PORT=6393
networks:
elknet:
ipv4_address: 172.16.10.104
expose:
- "6393"
- "16393"
redis-slave1:
<<: *redis-master
container_name: redis-slave1
environment:
- PORT=6394
networks:
elknet:
ipv4_address: 172.16.10.112
expose:
- "6394"
- "16394"
redis-slave2:
<<: *redis-master
container_name: redis-slave2
environment:
- PORT=6395
expose:
- "6395"
- "16395"
networks:
elknet:
ipv4_address: 172.16.10.113
redis-slave3:
<<: *redis-master
container_name: redis-slave3
environment:
- PORT=6396
expose:
- "6396"
- "16396"
networks:
elknet:
ipv4_address: 172.16.10.114
networks:
elknet:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.16.10.0/24
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/piao/es-logstash-kibana.git
git@gitee.com:piao/es-logstash-kibana.git
piao
es-logstash-kibana
es-logstash-kibana
master

搜索帮助