提交 5385de80 作者: 施泽锋

first commit

上级
{{- $autodeolpyImage:="%s/auto_deploy:1.0.1" .Values.docker_registry}}
{{- $redisImage:="registry.cn-shenzhen.aliyuncs.com/wsy_dev/redis:4.0"}}
{{- $dbImage:=printf "%s/mysql:5.7" .Values.docker_registry}}
{{- $mqSImage:="rabbitmq:3.6.16-management-alpine"}}
version: '2'
services:
auto_deploy:
image: {{$autodeolpyImage}}
environment:
- REDIS_HOST=${redis_host}
- REDIS_PASSWORD=${redis_pwd}
- REDIS_PORT=6379
- MQ_USER=${mq_user}
- MQ_PASSWORD=${mq_pass}
- MQ_HOST=${mq_host}
- MQ_PORT=5672
- MQ_VHOST=${mq_vhost}
- DB_HOST=${db_host}
- DB_USER=${db_user}
- DB_PORT=3306
- DB_PWD=${db_pwd}
stdin_open: true
tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels:
traefik.web.frontend.rule: Host:${web_url}
traefik.enable: 'true'
traefik.web.port: '80'
io.rancher.container.pull_image: always
auto-redis:
image: {{$redisImage}}
environment:
- REDIS_PASSWORD=${redis_pwd}
stdin_open: true
tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels:
io.rancher.container.pull_image: always
auto-db:
image: {{$dbImage}}
environment:
- MYSQL_ROOT_PASSWORD=${db_pwd}
- LANG=C.UTF-8
- MY_CNF=[mysqld]\nmax_allowed_packet =30M
stdin_open: true
volumes:
- auto-mysql:/var/lib/mysql
tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels:
io.rancher.container.pull_image: always
auto-mq-server:
image: {{$mqSImage}}
environment:
- RABBITMQ_DEFAULT_USER=${mq_user}
- RABBITMQ_DEFAULT_PASS=${mq_pass}
- RABBITMQ_DEFAULT_VHOST=${mq_vhost}
stdin_open: true
tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels:
io.rancher.container.pull_image: always
volumes:
auto-mysql:
driver: ${volume_driver}
version: '2'
catalog:
name: "Auto_deploy | 自动部署工具"
version: "v1.0.1"
description: "偷懒用工具。"
minimum_rancher_version: v0.51.0
questions:
- variable: web_url
description: "域名"
label: "Domain"
required: true
default: ""
type: "string"
- variable: db_host
description: "数据库连接地址,应用内可直接使用服务名"
label: "数据库连接地址"
required: true
default: "auto-db"
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: "auto-redis"
type: "string"
- variable: redis_pwd
description: "redis数据库密码"
label: "redis数据库密码"
required: true
default: ""
type: "string"
- variable: mq_host
description: "消息队列服务器地址,应用内可直接使用服务名"
label: "消息队列服务器地址"
required: true
default: "auto-mq-server"
type: "string"
- variable: mq_vhost
description: "消息队列虚拟主机名"
label: "消息队列虚拟主机"
required: true
default: "my_vhost"
type: "string"
- variable: mq_user
description: "消息队列账号"
label: "消息队列账号"
required: true
default: "mquser"
type: "string"
- variable: mq_pass
description: "消息队列密码"
label: "消息队列密码"
required: true
default: ""
type: "string"
- variable: volume_driver
description: "应用数据卷驱动程序"
label: "卷驱动"
required: true
default: "local"
type: enum
options:
- rancher-nfs
- local
- variable: debug_mode
description: "debug模式,生产环境慎用!"
label: "debug模式"
required: true
default: "false"
type: enum
options:
- true
- false
- variable: docker_registry
description: "仓库加速节点"
label: "仓库地址"
required: true
default: "reg.wsy010.cn/auto_deploy"
type: enum
options:
- reg.wsy010.cn/auto_deploy
services:
bc-redis:
scale: 1
start_on_create: true
bc-db:
scale: 1
start_on_create: true
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="99.915px" height="61.508px" viewBox="0 0 99.915 61.508" enable-background="new 0 0 99.915 61.508" xml:space="preserve">
<path fill="#1D8B90" d="M83.477,29.018c-0.152,0-0.298,0.018-0.449,0.022c0.112-0.97,0.174-1.95,0.174-2.948
c0-14.138-11.458-25.596-25.597-25.596c-11.017,0-20.404,6.959-24.013,16.721c-1.986-2.377-4.97-3.89-8.308-3.89
c-5.979,0-10.824,4.844-10.824,10.82c0,0.865,0.111,1.702,0.304,2.509c-8.134,1.421-14.322,8.5-14.322,17.041
c0,9.564,7.754,17.314,17.317,17.314h1.667c5.4-5.402,12.013-12.016,12.479-12.482c0.796-0.793,2.914-0.793,2.914-0.793
s2.064-2.061,4.184-4.184c2.121-2.121-1.532-5.773-1.532-5.773l-5.098-5.098c19.611-19.62,34.103-13.716,34.103-13.716
s5.907,14.493-13.704,34.11l-5.1-5.098c0,0-3.65-3.652-5.77-1.531c-2.124,2.123-4.186,4.186-4.186,4.186s0.003,2.121-0.795,2.916
c-0.325,0.326-3.646,3.648-7.46,7.463H84.86v-0.068c8.185-0.701,14.612-7.561,14.612-15.928
C99.473,36.18,92.311,29.018,83.477,29.018z"/>
</svg>
name: Auto_deploy | 自动部署工具
description: |
随便写的,能用就行了。
version: v1.0.1
category: CMS
maintainer: xishi
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论