提交 a5738796 作者: 429287088

1

上级 f6c1557a
version: '2' version: '2'
{{- if (.Values.docker_registry_url)}} {{- define "T1"}}
{{- $docker_registry := .Values.docker_registry_url }} {{- if (.Values.docker_registry_url)}}
{{else}} ${docker_registry_url}
{{$docker_registry := "registry.cn-shenzhen.aliyuncs.com/wsy_dev" }} {{- else}}
registry.cn-shenzhen.aliyuncs.com/wsy_dev
{{- end }}
{{- end }}
volumes: volumes:
public: public:
driver: ${volume_driver} driver: ${volume_driver}
...@@ -21,7 +23,7 @@ volumes: ...@@ -21,7 +23,7 @@ volumes:
driver: ${volume_driver} driver: ${volume_driver}
services: services:
shop: shop:
image: {{.Values.docker_registry}}/wsycloud-shop:v0.1.6 image: {{- template "T1"}}/wsycloud-shop:v0.1.6
environment: environment:
APP_INTRANET_DOMAIN: http://shop APP_INTRANET_DOMAIN: http://shop
DB_HOST_shop: ${db_host} DB_HOST_shop: ${db_host}
...@@ -46,7 +48,7 @@ services: ...@@ -46,7 +48,7 @@ services:
traefik.enable: 'true' traefik.enable: 'true'
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
rebate: rebate:
image: {{.Values.docker_registry}}/wsy_rebate:v0.1.6 image: ${docker_registry}/wsy_rebate:v0.1.6
environment: environment:
REDIS_HOST: ${redis_host} REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass} REDIS_PASS: ${redis_pass}
...@@ -65,7 +67,7 @@ services: ...@@ -65,7 +67,7 @@ services:
traefik.frontend.priority: '10' traefik.frontend.priority: '10'
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
channel: channel:
image: {{.Values.docker_registry}}/wsycloud-channel:v0.1.6 image: ${docker_registry}/wsycloud-channel:v0.1.6
environment: environment:
REDIS_HOST: ${redis_host} REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass} REDIS_PASS: ${redis_pass}
...@@ -84,7 +86,7 @@ services: ...@@ -84,7 +86,7 @@ services:
traefik.enable: 'true' traefik.enable: 'true'
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
db-mysql: db-mysql:
image: {{.Values.docker_registry}}/weisanyun/mysql:5.6 image: ${docker_registry}/weisanyun/mysql:5.6
environment: environment:
LANG: C.UTF-8 LANG: C.UTF-8
MYSQL_ROOT_PASSWORD: ${db_pwd} MYSQL_ROOT_PASSWORD: ${db_pwd}
...@@ -96,7 +98,7 @@ services: ...@@ -96,7 +98,7 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
pay: pay:
image: {{.Values.docker_registry}}/wsy_pay:v0.1.6 image: ${docker_registry}/wsy_pay:v0.1.6
environment: environment:
REDIS_HOST: ${redis_host} REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass} REDIS_PASS: ${redis_pass}
...@@ -115,7 +117,7 @@ services: ...@@ -115,7 +117,7 @@ services:
traefik.frontend.priority: '10' traefik.frontend.priority: '10'
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
redis: redis:
image: {{.Values.docker_registry}}/redis:4.0 image: ${docker_registry}/redis:4.0
environment: environment:
REDIS_PASSWORD: ${redis_pass} REDIS_PASSWORD: ${redis_pass}
stdin_open: true stdin_open: true
...@@ -123,7 +125,7 @@ services: ...@@ -123,7 +125,7 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
mq-server: mq-server:
image: {{.Values.docker_registry}}/rabbitmq:3.6.16-management-alpine image: ${docker_registry}/rabbitmq:3.6.16-management-alpine
environment: environment:
RABBITMQ_DEFAULT_USER: ${mquser} RABBITMQ_DEFAULT_USER: ${mquser}
RABBITMQ_DEFAULT_PASS: ${mqpass} RABBITMQ_DEFAULT_PASS: ${mqpass}
...@@ -133,7 +135,7 @@ services: ...@@ -133,7 +135,7 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
timmer: timmer:
image: {{.Values.docker_registry}}/task:alpine image: ${docker_registry}/task:alpine
environment: environment:
TASK_CNF: '*/1 * * * * wget --spider ''http://task/wsy_task/admin/index.php?m=task_dispatch&a=run_task''' TASK_CNF: '*/1 * * * * wget --spider ''http://task/wsy_task/admin/index.php?m=task_dispatch&a=run_task'''
stdin_open: true stdin_open: true
...@@ -141,7 +143,7 @@ services: ...@@ -141,7 +143,7 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
task: task:
image: {{.Values.docker_registry}}/wsycloud-task:v0.1.5 image: ${docker_registry}/wsycloud-task:v0.1.5
environment: environment:
DB_HOST_task: ${db_host} DB_HOST_task: ${db_host}
DB_PORT_task: '3306' DB_PORT_task: '3306'
...@@ -156,7 +158,7 @@ services: ...@@ -156,7 +158,7 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
public: public:
image: {{.Values.docker_registry}}/public:v0.1.6 image: ${docker_registry}/public:v0.1.6
environment: environment:
DB_HOST: ${db_host} DB_HOST: ${db_host}
DB_PORT: '3306' DB_PORT: '3306'
...@@ -187,7 +189,7 @@ services: ...@@ -187,7 +189,7 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
html: html:
image: {{.Values.docker_registry}}/html:v0.1.6 image: ${docker_registry}/html:v0.1.6
stdin_open: true stdin_open: true
volumes: volumes:
- HTML:/var/www/html/HTML - HTML:/var/www/html/HTML
...@@ -195,7 +197,7 @@ services: ...@@ -195,7 +197,7 @@ services:
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
pub: pub:
image: {{.Values.docker_registry}}/wsy_pub:v0.1.6 image: ${docker_registry}/wsy_pub:v0.1.6
environment: environment:
REDIS_HOST: ${redis_host} REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass} REDIS_PASS: ${redis_pass}
...@@ -214,7 +216,7 @@ services: ...@@ -214,7 +216,7 @@ services:
traefik.frontend.priority: '10' traefik.frontend.priority: '10'
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
user: user:
image: {{.Values.docker_registry}}/wsy_user:v0.1.6 image: ${docker_registry}/wsy_user:v0.1.6
environment: environment:
REDIS_HOST: ${redis_host} REDIS_HOST: ${redis_host}
REDIS_PASS: ${redis_pass} REDIS_PASS: ${redis_pass}
...@@ -233,7 +235,7 @@ services: ...@@ -233,7 +235,7 @@ services:
traefik.frontend.priority: '10' traefik.frontend.priority: '10'
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
queue: queue:
image: {{.Values.docker_registry}}/wsycloud-queue:v0.1.6 image: ${docker_registry}/wsycloud-queue:v0.1.6
environment: environment:
MQ_HOST: ${mq_host} MQ_HOST: ${mq_host}
MQ_USER: ${mquser} MQ_USER: ${mquser}
...@@ -251,4 +253,3 @@ services: ...@@ -251,4 +253,3 @@ services:
traefik.enable: 'true' traefik.enable: 'true'
traefik.frontend.priority: '10' traefik.frontend.priority: '10'
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
\ No newline at end of file
{{- end}}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论