提交 2b2c5bb0 作者: 429287088

1

上级 4f537684
{{- $redisImage:=printf "%s/redis:4.0" .Values.docker_registry}}
{{- $dbImage:=printf "%s/mysql:5.6" .Values.docker_registry}}
{{- $shopImage:=printf "%s/wsycloud-shop:v0.2.9" .Values.docker_registry}}
{{- $rebateImage:=printf "%s/wsy_rebate:v0.2.9" .Values.docker_registry}}
{{- $channelImage:=printf "%s/wsycloud-channel:v0.2.9" .Values.docker_registry}}
{{- $payImage:=printf "%s/wsy_pay:v0.2.9" .Values.docker_registry}}
{{- $rabbitmqImage:=printf "%s/rabbitmq:3.6.16-management-alpine" .Values.docker_registry}}
{{- $timmerImage:=printf "%s/task:alpine" .Values.docker_registry}}
{{- $taskImage:=printf "%s/wsycloud-task:v0.2.9" .Values.docker_registry}}
{{- $publicImage:=printf "%s/public:v0.2.9" .Values.docker_registry}}
{{- $htmlImage:=printf "%s/html:v0.2.9" .Values.docker_registry}}
{{- $pubImage:=printf "%s/wsy_pub:v0.2.9" .Values.docker_registry}}
{{- $userImage:=printf "%s/wsy_user:v0.2.9" .Values.docker_registry}}
{{- $queueImage:=printf "%s/wsycloud-queue:v0.2.9" .Values.docker_registry}}
version: '2'
volumes:
public:
driver: ${volume_driver}
dev:
driver: ${volume_driver}
db-mysql:
driver: ${volume_driver}
channel:
driver: ${volume_driver}
resources:
driver: ${volume_driver}
HTML:
driver: ${volume_driver}
logs:
driver: ${volume_driver}
services:
shop:
image: {{$shopImage}}
environment:
APP_INTRANET_DOMAIN: http://shop
DB_HOST_shop: ${db_host}
DB_PORT_shop: '3306'
DB_PWD_shop: ${db_pwd}
DB_USER_shop: ${db_user}
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
WSY_SHOP: ${db_pr}shop
DEBUG: ${debug_mode}
stdin_open: true
volumes:
- public:/var/www/html/public
- HTML:/var/www/html/HTML
- resources:/var/www/html/resources
- logs:/tmp/wsy/
tty: true
labels:
traefik.frontend.redirect.entryPoint: http
traefik.frontend.rule: 'Host:${host_url}; PathPrefix: /shop/'
traefik.port: '80'
traefik.enable: 'true'
io.rancher.container.pull_image: always
rebate:
image: {{$rebateImage}}
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: ${debug_mode}
stdin_open: true
volumes:
- public:/var/www/html/public
- HTML:/var/www/html/HTML
- resources:/var/www/html/resources
- logs:/tmp/wsy/
tty: true
labels:
traefik.frontend.rule: 'Host:${host_url}; PathPrefix: /wsy_rebate/'
traefik.port: '80'
traefik.enable: 'true'
traefik.frontend.priority: '10'
io.rancher.container.pull_image: always
channel:
image: {{$channelImage}}
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: ${debug_mode}
stdin_open: true
volumes:
- public:/var/www/html/public
- HTML:/var/www/html/HTML
- resources:/var/www/html/resources
- logs:/tmp/wsy/
tty: true
labels:
traefik.frontend.redirect.entryPoint: http
traefik.frontend.rule: 'Host:${host_url}; PathPrefix: /channel/'
traefik.port: '80'
traefik.enable: 'true'
io.rancher.container.pull_image: always
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'
stdin_open: true
volumes:
- db-mysql:/var/lib/mysql
tty: true
labels:
io.rancher.container.pull_image: always
pay:
image: {{$payImage}}
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: ${debug_mode}
stdin_open: true
volumes:
- public:/var/www/html/public
- HTML:/var/www/html/HTML
- resources:/var/www/html/resources
- logs:/tmp/wsy/
tty: true
labels:
traefik.frontend.rule: 'Host:${host_url}; PathPrefix: /wsy_pay/; ReplacePathRegex: ^/(.*)/api/(.*) /$$1/api/index.php/$$2'
traefik.port: '80'
traefik.enable: 'true'
traefik.frontend.priority: '10'
io.rancher.container.pull_image: always
redis:
image: {{$redisImage}}
environment:
REDIS_PASSWORD: ${redis_pass}
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
mq-server:
image: {{$rabbitmqImage}}
environment:
RABBITMQ_DEFAULT_USER: ${mquser}
RABBITMQ_DEFAULT_PASS: ${mqpass}
RABBITMQ_DEFAULT_VHOST: ${mqvhost}
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
timmer:
image: {{$timmerImage}}
environment:
TASK_CNF: '*/1 * * * * wget --spider ''http://task/wsy_task/admin/index.php?m=task_dispatch&a=run_task'''
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
task:
image: {{$taskImage}}
environment:
DB_HOST_task: ${db_host}
DB_PORT_task: '3306'
DB_PWD_task: ${db_pwd}
DB_USER_task: ${db_user}
WSY_TASK: ${db_pr}task
stdin_open: true
volumes:
- public:/var/www/html/public
- logs:/tmp/wsy/
tty: true
labels:
io.rancher.container.pull_image: always
public:
image: {{$publicImage}}
environment:
DB_HOST: ${db_host}
DB_PORT: '3306'
DB_PWD: ${db_pwd}
DB_TYPE: mysql
DB_USER: ${db_user}
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
REDIS_PORT: '6379'
SYSTEM_API_KEY: ${system_api_key}
WSY_CHANNEL: ${db_pr}channel
WSY_PAY: ${db_pr}pay
WSY_PUB: ${db_pr}pub
WSY_REBATE: ${db_pr}rebate
WSY_USER: ${db_pr}user
CHANNEL_INTRANET_DOMAIN: http://channel
PUB_INTRANET_DOMAIN: http://pub
QUEUE_INTRANET_DOMAIN: http://queue
STAT_INTRANET_DOMAIN: http://stat
TASK_INTRANET_DOMAIN: http://task
USER_INTRANET_DOMAIN: http://user
PAY_INTRANET_DOMAIN: http://pay
REBATE_INTRANET_DOMAIN: http://rebate
stdin_open: true
volumes:
- public:/var/www/html/public
tty: true
labels:
io.rancher.container.pull_image: always
html:
image: {{$htmlImage}}
stdin_open: true
volumes:
- HTML:/var/www/html/HTML
tty: true
labels:
io.rancher.container.pull_image: always
pub:
image: {{$pubImage}}
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: ${debug_mode}
stdin_open: true
volumes:
- public:/var/www/html/public
- HTML:/var/www/html/HTML
- resources:/var/www/html/resources
- logs:/tmp/wsy/
tty: true
labels:
traefik.frontend.rule: 'Host:${host_url}; ReplacePathRegex: ^/(.*\\.txt) /wsy_pub/api/index.php/verify_file/read/file_name=$$1'
traefik.port: '80'
traefik.enable: 'true'
traefik.frontend.priority: '10'
io.rancher.container.pull_image: always
user:
image: {{$userImage}}
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: ${debug_mode}
stdin_open: true
volumes:
- public:/var/www/html/public
- HTML:/var/www/html/HTML
- resources:/var/www/html/resources
- logs:/tmp/wsy/
tty: true
labels:
traefik.frontend.rule: 'Host:${host_url}; PathPrefix: /wsy_user/'
traefik.port: '80'
traefik.enable: 'true'
traefik.frontend.priority: '10'
io.rancher.container.pull_image: always
queue:
image: {{$queueImage}}
environment:
MQ_HOST: ${mq_host}
MQ_USER: ${mquser}
MQ_PASS: ${mqpass}
MQ_VHOST: ${mqvhost}
MQ_PORT: '5672'
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: ${debug_mode}
stdin_open: true
tty: true
labels:
traefik.frontend.rule: 'Host:${host_url}; PathPrefix: /wsy_queue/'
traefik.port: '80'
traefik.enable: 'true'
traefik.frontend.priority: '10'
io.rancher.container.pull_image: always
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论