提交 74c24a1e 作者: 施泽锋

1111

上级 cb67441d
version: '2' version: '2'
catalog: catalog:
name: "superH5 | 新h5壳后台系统" name: "superH5 | 新h5壳后台系统"
version: "1.0.0.1" version: "1.0.0"
description: | description: |
新h5壳后台系统。 新h5壳后台系统。
minimum_rancher_version: "" minimum_rancher_version: ""
......
version: '2'
{{- $webImage:="super_h5:1.1.0.0" }}
{{- $mysqlImage:="mysql:5.6" }}
{{- $redisImage:="redis:4.0.11" }}
{{- $timerImage:="task:alpine" }}
volumes:
super-resources:
driver: rancher-nfs
{{- if eq .Values.db_host "db-mysql" }}
db-mysql:
driver: rancher-nfs
{{- end }}
services:
super-h5:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/{{$webImage}}
environment:
WEB_HOST: ${web_url}
ANDROID_APP_VERSION_NAME: ${app_version}
DB_HOST: ${db_host}
DB_NAME: wsy_h5_app
DB_PORT: '3306'
DB_PREFIX: t_
DB_PWD: ${db_pass}
DB_USER: ${db_user}
DEBUG: 'false'
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
UPLOAD_SIZE: ${upload}
stdin_open: true
volumes:
- super-resources:/var/www/html/public/upload
tty: true
labels:
traefik.web.frontend.rule: Host:${web_url}
traefik.port: '80'
traefik.enable: 'true'
io.rancher.container.pull_image: always
traefik.frontend.headers.customRequestHeaders: X-Forwarded-Proto:https
{{- if eq .Values.db_host "db-mysql" }}
links:
- mysql:mysql
{{- end }}
{{- if eq .Values.redis_host "redis" }}
links:
- redis:redis
{{- end }}
{{- if eq .Values.db_host "db-mysql" }}
db-mysql:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/{{$mysqlImage}}
environment:
LANG: C.UTF-8
MYSQL_ROOT_PASSWORD: ${db_pass}
MY_CNF: '[mysqld]\nmax_allowed_packet = 30M\nevent_scheduler = ON\nmax_connections=1200'
stdin_open: true
volumes:
- db-mysql:/var/lib/mysql
tty: true
labels:
io.rancher.container.pull_image: always
{{- end }}
{{- if eq .Values.redis_host "redis" }}
redis:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/{{$redisImage}}
environment:
REDIS_PASSWORD: ${redis_pass}
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
{{- end }}
task:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/{{$timerImage}}
environment:
TASK_CNF: |-
*/1 * * * * wget --spider http://super-h5/task/msg_push/index.html
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
version: '2'
catalog:
name: "superH5 | 新h5壳后台系统"
version: "1.1.0"
description: |
新h5壳后台系统。
minimum_rancher_version: ""
maximum_rancher_version: ""
upgrade_from: ">=0.0.1"
questions:
- variable: web_url
label: 网站域名
description: |
多个网站域名用英文逗号隔开,不带http/https。
default: ""
required: true
type: string
- variable: db_host
label: MYSQL连接地址
description: |
数据库连接地址
default: "db-mysql"
required: true
type: string
- variable: db_user
label: MYSQL账号
description: |
数据库登录账号,数据库名默认为wsy_h5_app
default: "root"
required: true
type: string
- variable: db_pass
label: MYSQL密码
description: |
数据库登录密码
default: ""
required: true
type: string
- variable: redis_host
label: REDIS连接地址
description: |
Redis缓存地址
default: "redis"
required: true
type: string
- variable: redis_pass
label: REDIS密码
description: |
Redis登录密码
default: ""
required: true
type: string
- variable: upload
label: PHP上传大小
description: |
上传大小设置,单位MByte
default: 128
required: true
type: int
- variable: app_version
label: 安卓app版本号
description: |
安卓app版本号
default: ""
required: true
type: string
\ No newline at end of file
name: superH5 | 新h5壳后台系统 name: superH5 | 新h5壳后台系统
description: | description: |
新h5壳后台系统。 新h5壳后台系统。
version: 1.0.0 version: 1.1.0
category: CMS category: CMS
maintainer: 微三云 maintainer: 微三云
projectURL: www.weisanyun.com projectURL: www.weisanyun.com
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论