From 49dadcc8f31da1bf1d72ef24119ca1e36489fea1 Mon Sep 17 00:00:00 2001 From: Database Server Date: Fri, 6 Jan 2023 00:39:44 +0800 Subject: [PATCH] Update: README.md --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0039ab4..fba5ef8 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,21 @@ # LaeCloud 莱云 ### 主节点运行 ```bash -docker run -itd --name=lae_schedule --restart=always -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art schedule:work +docker run -itd --name=lae_schedule --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art schedule:work -docker run -itd --name=lae_workers --restart=always -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work +docker run -itd --name=lae_workers --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work ``` ### Web 节点运行 ```bash -docker run -itd --name=lae --restart=always -p 8000:8000 -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art works +docker run -itd --name=lae --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art works +``` + + +### 单次执行 比如 migrate 或者 composer +```bash +docker run --rm --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte php +``` +```bash +docker run --rm --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art ```