提交 ba8ff50e 作者: 施泽锋

新增标签

上级 00906db6
......@@ -20,6 +20,9 @@ services:
volumes:
- els-data:/opt/path/to/data
tty: true
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${elk_label}
kibana:
image: reg.wsy010.cn/elk/kibana:7.0.1
environment:
......@@ -40,6 +43,9 @@ services:
- DEBUG=${debug}
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${elk_label}
kibana-nginx:
image: reg.wsy010.cn/elk/kibana-nginx:0.1
environment:
......@@ -53,6 +59,7 @@ services:
io.rancher.container.pull_image: always
traefik.backend.loadbalancer.stickiness: 'true'
traefik.frontend.headers.customRequestHeaders: X-Forwarded-Proto:https
io.rancher.scheduler.affinity:host_label: ${elk_label}
redis:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/redis:4.0
environment:
......@@ -61,6 +68,7 @@ services:
tty: true
labels:
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: ${elk_label}
volumes:
els-data:
driver: ${volumns_dirver}
\ No newline at end of file
......@@ -122,6 +122,12 @@ catalog:
required: false
default: ""
type: "string"
- variable: elk_label
description: "用于提供日志服务的主机标签,只在带有该标签的主机上运行本容器。"
label: "调度标签"
required: true
default: "elk=true"
type: "string"
- variable: volume_driver
description: "应用数据卷驱动程序"
label: "卷驱动"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论