提交 c43514be 作者: 429287088

1

上级 79338c62
version: '2'
volumes:
public:
driver: ${volumedriver}
dev:
driver: ${volumedriver}
db-mysql:
driver: ${volumedriver}
channel:
driver: ${volumedriver}
resources:
driver: ${volumedriver}
HTML:
driver: ${volumedriver}
logs:
driver: ${volumedriver}
services:
shop:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/wsycloud-shop:v0.1.6
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: 'false'
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:${hosturl}; PathPrefix: /shop/'
traefik.port: '80'
traefik.enable: 'true'
io.rancher.container.pull_image: always
rebate:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/wsy_rebate:v0.1.6
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: 'false'
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:${hosturl}; PathPrefix: /wsy_rebate/'
traefik.port: '80'
traefik.enable: 'true'
traefik.frontend.priority: '10'
io.rancher.container.pull_image: always
channel:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/wsycloud-channel:v0.1.6
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: 'false'
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:${hosturl}; PathPrefix: /channel/'
traefik.port: '80'
traefik.enable: 'true'
io.rancher.container.pull_image: always
db-mysql:
image: registry.cn-hangzhou.aliyuncs.com/weisanyun/mysql:5.6
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: registry.cn-shenzhen.aliyuncs.com/wsy_dev/wsy_pay:v0.1.6
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: 'false'
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:${hosturl}; 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: bitnami/redis:4.0
environment:
REDIS_PASSWORD: ${redis_pass}
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
mq-server:
image: rabbitmq:3.6.16-management-alpine
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: registry.cn-hangzhou.aliyuncs.com/weisanyun/task:alpine
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: registry.cn-shenzhen.aliyuncs.com/wsy_dev/wsycloud-task:v0.1.5
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: registry.cn-shenzhen.aliyuncs.com/wsy_dev/public:v0.1.6
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: registry.cn-shenzhen.aliyuncs.com/wsy_dev/html:v0.1.6
stdin_open: true
volumes:
- HTML:/var/www/html/HTML
tty: true
labels:
io.rancher.container.pull_image: always
pub:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/wsy_pub:v0.1.6
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: 'false'
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:${hosturl}; 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: registry.cn-shenzhen.aliyuncs.com/wsy_dev/wsy_user:v0.1.6
environment:
REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass}
DEBUG: 'false'
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:${hosturl}; PathPrefix: /wsy_user/'
traefik.port: '80'
traefik.enable: 'true'
traefik.frontend.priority: '10'
io.rancher.container.pull_image: always
queue:
image: registry.cn-shenzhen.aliyuncs.com/wsy_dev/wsycloud-queue:v0.1.6
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: 'false'
stdin_open: true
tty: true
labels:
traefik.frontend.rule: 'Host:${hosturl}; PathPrefix: /wsy_queue/'
traefik.port: '80'
traefik.enable: 'true'
traefik.frontend.priority: '10'
io.rancher.container.pull_image: always
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论