提交 841d99eb 作者: 黄润秋

1

上级 3283420e
{{- $redisImage:=printf "%s/redis:4.0.11" .Values.docker_registry}}
{{- $dbImage:=printf "%s/mysql:5.6" .Values.docker_registry}}
{{- $timmerImage:=printf "%s/task:alpine" .Values.docker_registry}}
{{- $htmlImage:=printf "%s/html:1.8.0" .Values.docker_registry}}
{{- $guanyunImage:=printf "%s/guanyun:1.1.1" .Values.docker_registry}}
version: '2'
services:
{{- if eq .Values.db_host "db-mysql"}}
db-mysql:
image: {{$dbImage}}
environment:
LANG: C.UTF-8
MYSQL_ROOT_PASSWORD: ${db_pwd}
MY_CNF: '[mysqld]\nmax_allowed_packet = 30M\nft_min_word_len = 1\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: {{$redisImage}}
environment:
REDIS_PASSWORD: ${redis_pass}
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
{{- end}}
html:
image: {{$htmlImage}}
stdin_open: true
tty: true
labels:
traefik.enable: true
traefik.frontend.rule: 'Host:${host_url}; PathPrefix: /HTML/'
traefik.port: 80
io.rancher.container.pull_image: always
aliyun.logs.html: stdout
aliyun.logs.html.tags: logtype=apache
timmer:
image: {{$timmerImage}}
environment:
TASK_CNF: '*/1 * * * * wget --spider ''http://guanyun/guanyun/task/index.php?m=task_dispatch&a=run_task'''
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
guanyun:
image: {{$guanyunImage}}
environment:
APP_INTRANET_DOMAIN: http://guanyun
WSY_GUANYUN: new_guanyun
DB_TYPE: mysql
DB_HOST: ${db_host}
DB_PORT: 3306
DB_PWD: ${db_pwd}
DB_USER: ${db_user}
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
REDIS_PORT: 6379
DEBUG: ${debugger_mode}
stdin_open: true
volumes:
- resources:/var/www/html/resources
- /tmp/wsy
tty: true
labels:
traefik.frontend.rule: 'Host:${host_url};'
traefik.port: 80
traefik.enable: true
io.rancher.container.pull_image: always
aliyun.logs.guanyun: stdout
aliyun.logs.guanyun.tags: logtype=apache
aliyun.logs.wsylog: /tmp/wsy/*/*.log
aliyun.logs.wsylog.format: json
volumes:
resources:
driver: ${volume_driver}
db-mysql:
driver: ${volume_driver}
version: '2'
catalog:
name: "guanyun |莞云应用系统"
version: "1.1.1"
description: "莞云企业云平台,共享价值链接器 开启未来商业秘密。"
minimum_rancher_version: v0.51.0
questions:
- variable: host_url
description: "应用对外服务所使用的域名,多个域名用英文逗号分开,不用加http/https"
label: "绑定域名"
required: true
default: ""
type: "string"
- variable: db_host
description: |
数据库连接地址.
label: "数据库连接地址"
required: true
default: "db-mysql"
type: "string"
- variable: db_user
description: |
数据库帐号.
label: "数据库帐号"
required: true
default: "root"
type: "string"
- variable: db_pwd
description: "数据库密码"
label: "数据库密码"
required: true
default: ""
type: "string"
- variable: redis_host
description: "redis数据库连接地址"
label: "redis数据库连接地址"
required: true
default: "redis"
type: "string"
- variable: redis_pass
description: "redis数据库密码"
label: "redis数据库密码"
required: true
default: ""
type: "string"
- variable: docker_registry
description: "仓库加速节点"
label: "仓库地址"
required: true
default: "registry.cn-shenzhen.aliyuncs.com/wsy_dev"
type: enum
options:
- registry.cn-shenzhen.aliyuncs.com/wsy_dev
- reg.wsy010.cn/wsycloud
- variable: volume_driver
description: "应用数据存储卷驱动程序,根据实际情况选择"
label: "存储卷驱动"
required: true
default: "rancher-nfs"
type: enum
options:
- rancher-nfs
- rancher-efs
- rancher-ebs
- local
- variable: debugger_mode
description: "debug模式,生产环境慎用!"
label: "debug模式"
required: true
default: "false"
type: enum
options:
- false
- readonly
\ No newline at end of file
......@@ -4,4 +4,4 @@
***
**time: ** 2020-08-11
**version: ** 1.0.0
\ No newline at end of file
**version: ** 1.0.1
\ No newline at end of file
name: wsycloud | 莞云应用服务系统
description: |
莞云应用服务系统
version: 1.1.0
version: 1.1.1
category: CMS
maintainer: 莞云应用系统
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论