提交 6928262f 作者: 施泽锋

去除判断

上级 ed7898df
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
version: '2' version: '2'
services: services:
{{- if eq .Values.redis_host "bc-redis"}}
bc-redis: bc-redis:
image: {{$redisImage}} image: {{$redisImage}}
environment: environment:
...@@ -24,6 +25,7 @@ services: ...@@ -24,6 +25,7 @@ services:
max-file: '3' max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
{{- end }}
bc-task: bc-task:
image: {{$taskImage}} image: {{$taskImage}}
environment: environment:
...@@ -85,6 +87,7 @@ services: ...@@ -85,6 +87,7 @@ services:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
traefik.frontend.redirect.replacement: "/wsy_blockchain/web/index.php?m=function&a=checkout_file&check_file=$${1}" traefik.frontend.redirect.replacement: "/wsy_blockchain/web/index.php?m=function&a=checkout_file&check_file=$${1}"
traefik.frontend.redirect.regex: /(\\w*).txt$$ traefik.frontend.redirect.regex: /(\\w*).txt$$
{{- if eq .Values.db_host "bc-db" }}
bc-db: bc-db:
image: {{$dbImage}} image: {{$dbImage}}
environment: environment:
...@@ -102,6 +105,7 @@ services: ...@@ -102,6 +105,7 @@ services:
max-file: '3' max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
{{- end }}
bc-sdk: bc-sdk:
image: {{$sdkImage}} image: {{$sdkImage}}
stdin_open: true stdin_open: true
......
...@@ -220,9 +220,6 @@ catalog: ...@@ -220,9 +220,6 @@ catalog:
- registry.cn-hangzhou.aliyuncs.com/weisanyun - registry.cn-hangzhou.aliyuncs.com/weisanyun
- reg.wsy010.cn/blockchain - reg.wsy010.cn/blockchain
services: services:
bc-redis:
scale: 1
start_on_create: true
bc-task: bc-task:
scale: 1 scale: 1
start_on_create: true start_on_create: true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论