提交 ff8280dd 作者: Administrator

上传新文件

上级 5aae0189
version: '2'
{{- $webImage:="adver_sdk:1.0.0" }}
{{- $mysqlImage:="mysql:5.6" }}
{{- $redisImage:="redis:4.0.11" }}
{{- $timerImage:="task:alpine" }}
volumes:
adver-resources:
driver: rancher-nfs
{{- if eq .Values.db_host "db-mysql" }}
db-mysql:
driver: rancher-nfs
{{- end }}
services:
adver-sdk:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/{{$webImage}}
environment:
DB_HOST: ${db_host}
DB_NAME: wsy_appadver
DB_PORT: '3306'
DB_PWD: ${db_pass}
DB_USER: ${db_user}
DEBUG: 'false'
WEB_HOST: ${web_url}
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
REDIS_PORT: '6379'
UPLOAD_SIZE: ${upload}
stdin_open: true
volumes:
- adver-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'
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: |-
*/3 * * * * wget --spider http://adver-sdk/task/collection_data/update_ad_data.html
* 4 15 * * wget --spider http://adver-sdk/task/finance/bill_jiesuan.html
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论