Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
guanyun
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
tools
catalogs
guanyun
Commits
37530ba2
提交
37530ba2
authored
8月 11, 2020
作者:
张辉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
guanyun应用compose
上级
5b699d2d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
157 行增加
和
0 行删除
+157
-0
docker-compose.yml
templates/guanyun/0/docker-compose.yml
+88
-0
rancher-compose.yml
templates/guanyun/0/rancher-compose.yml
+69
-0
没有找到文件。
templates/guanyun/0/docker-compose.yml
浏览文件 @
37530ba2
{{
- $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.0.0" .Values.docker_registry
}}
version
:
'
2'
service
:
{{
- 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
{{
- if (.Values.host_label)
}}
io.rancher.scheduler.affinity:host_label
:
${host_label}
{{
- end
}}
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
stdin_open
:
true
tty
:
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}
templates/guanyun/0/rancher-compose.yml
浏览文件 @
37530ba2
version
:
'
2'
catalog
:
name
:
"
guanyun
|莞云应用系统"
version
:
"
v1.0.0"
description
:
"
莞云企业云平台,共享价值链接器
开启未来商业秘密。"
minimum_rancher_version
:
v0.51.0
questions
:
-
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
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论