提交 56216f70 作者: 429287088

1

上级 e941ba45
...@@ -16,6 +16,11 @@ services: ...@@ -16,6 +16,11 @@ services:
- REDIS_PASSWORD=${redis_pwd} - REDIS_PASSWORD=${redis_pwd}
stdin_open: true stdin_open: true
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
bc-task: bc-task:
...@@ -24,6 +29,11 @@ services: ...@@ -24,6 +29,11 @@ services:
- TASK_CNF=*/1 * * * * wget --spider 'http://bc-app/wsy_blockchain/task/api/index.php?m=cron_dispatch&a=index' - TASK_CNF=*/1 * * * * wget --spider 'http://bc-app/wsy_blockchain/task/api/index.php?m=cron_dispatch&a=index'
stdin_open: true stdin_open: true
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
bc-app: bc-app:
...@@ -48,6 +58,11 @@ services: ...@@ -48,6 +58,11 @@ services:
- bc-address:/var/www/html/wsy_blockchain/web/view/blockchain/src/address - bc-address:/var/www/html/wsy_blockchain/web/view/blockchain/src/address
- bc-logs:/tmp/wsy_blockchain - bc-logs:/tmp/wsy_blockchain
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
traefik.frontend.rule: Host:${host_url} traefik.frontend.rule: Host:${host_url}
traefik.port: '80' traefik.port: '80'
...@@ -63,6 +78,11 @@ services: ...@@ -63,6 +78,11 @@ services:
volumes: volumes:
- bc-mysql:/var/lib/mysql - bc-mysql:/var/lib/mysql
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
bc-sdk: bc-sdk:
...@@ -75,6 +95,11 @@ services: ...@@ -75,6 +95,11 @@ services:
volumes: volumes:
- sdk-config:/usr/local/tomcat/webapps/blockchain/WEB-INF/main-resources - sdk-config:/usr/local/tomcat/webapps/blockchain/WEB-INF/main-resources
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
bc-mq-server: bc-mq-server:
...@@ -85,6 +110,11 @@ services: ...@@ -85,6 +110,11 @@ services:
- RABBITMQ_DEFAULT_VHOST=${mq_vhost} - RABBITMQ_DEFAULT_VHOST=${mq_vhost}
stdin_open: true stdin_open: true
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
bc-mq-client: bc-mq-client:
...@@ -97,6 +127,11 @@ services: ...@@ -97,6 +127,11 @@ services:
- MQ_VHOST=${mq_vhost} - MQ_VHOST=${mq_vhost}
stdin_open: true stdin_open: true
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
website: website:
...@@ -109,6 +144,11 @@ services: ...@@ -109,6 +144,11 @@ services:
volumes: volumes:
- bc-resources:/var/www/html/resources - bc-resources:/var/www/html/resources
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
traefik.frontend.rule: Host:${website_url} traefik.frontend.rule: Host:${website_url}
traefik.port: '80' traefik.port: '80'
...@@ -125,6 +165,11 @@ services: ...@@ -125,6 +165,11 @@ services:
- sphinx_DB_USER=${db_user} - sphinx_DB_USER=${db_user}
stdin_open: true stdin_open: true
tty: true tty: true
logging:
driver: json-file
options:
max-size: 100m
max-file: '3'
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
volumes: volumes:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论