提交 70b7a82a 作者: 宋秦轩

上传新文件

上级 41856930
version: '2'
{{- $webImage:="super_admin:1.9.9" }}
{{- $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-admin:
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_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: |-
0 */3 * * * wget --spider http://super-admin/task/get_news/collection_toutiao.html
*/1 * * * * wget --spider http://super-admin/task/msg_push/index.html
0 */3 * * * wget --spider http://super-admin/task/deal_hot_news/index.html
*/1 * * * * wget --spider http://super-admin/task/small_change/execu_transaction_record.html
*/1 * * * * wget --spider http://super-admin/task/small_change/execu_red_envelope.html
*/1 * * * * wget --spider http://super-admin/task/block_red_envelope/execu_transaction_record.html
*/1 * * * * wget --spider http://super-admin/task/block_red_envelope/execu_red_envelope.html
*/30 * * * * wget --spider http://super-admin/task/collection_video/get_video_list.html
*/1 * * * * wget --spider http://super-admin/task/live/close_live_room.html
*/1 * * * * wget --spider http://super-admin/task/usersync_register/sync_register.html
0 3 * * * wget --spider http://super-admin/task/superior_reward/send_reward.html
0 */3 * * * wget --spider http://super-admin/task/msg_push/delete_old_data.html
*/10 * * * * wget --spider http://super-admin/task/user_vip/expire_tip.html
0 */4 * * * wget --spider http://super-admin/task/deal_hot_news/update_user_fans.html
*/1 * * * * wget --spider http://super-admin/task/export_excel/export.html
*/30 * * * * wget --spider http://super-admin/task/im/register.html
0 6 * * * wget --spider http://super-admintask/push_data/remove_old_data.html
*/1 * * * * wget --spider http://super-admin/task/gouwubi_red_envelope/execu_red_envelope.html
0 4 * * * wget --spider http://super-admin/task/msg_push/rm_old_msg.html
0 5 * * * wget --spider http://super-admin/task/tempfile/del_temp_file.html
0 3 * * * wget --spider http://super-admin/task/get_news/del_old_news_video.html
*/1 * * * * wget --spider http://super-admin/task/live/live_yugao_tuisong.html
0 5 * * * wget --spider http://super-admin/task/video/send_reward.html
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论