From 70fd58c5d7800a21d359e2bd1fc2233c1b61d235 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Tue, 25 Aug 2020 09:28:37 +0800 Subject: [PATCH] Update README.md --- README.en.md | 12 ++++++++++++ README.md | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/README.en.md b/README.en.md index 85056dd41..9db1f0dd3 100644 --- a/README.en.md +++ b/README.en.md @@ -291,6 +291,18 @@ start-vue-admin.bat yarn run build:prod ``` +### About Docker container + +**Step 1**: build the background service, recommend running the batch file directly, parameters of the publish, the content, can see the batch **pay attention to the configuration file, after the release of service requires appsettings. Production. The json file** + +**Step 2**: Build the front-end, YARN/NPM build: PROD + +**Step 3**: Change nginx proxy server address, ./vueJs/docker/nginx/default.conf + +**Step 4**: Run command **sudo docker-compose down && sudo docker-compose -f docker-compose.yml -f docker-compose.override.yml up --build -d** + +**Using A CI tool such as Jenkins is recommended to simplify this into a single step** + #### Lints and fixes files ```bash diff --git a/README.md b/README.md index 8339878b3..053ab6ca9 100644 --- a/README.md +++ b/README.md @@ -294,6 +294,19 @@ start-vue-admin.bat yarn build:prod ``` +### 关于docker容器部署 + +**第一步**: 构建后台服务,推荐直接运行批处理文件,参数为 --publish,具体可参见批处理内容,**注意配置文件,发布后的服务需要 appsettings.Production.json 文件** + +**第二步**: 构建前端, yarn/npm build:prod + +**第三步**: 变更nginx代理服务器地址, ./vueJs/docker/nginx/default.conf + +**第四步**: 运行此命令 **sudo docker-compose down && sudo docker-compose -f docker-compose.yml -f docker-compose.override.yml up --build -d** + +**推荐使用 jenkins 之类的ci工具,可以将此简化为一个步骤** + + ### 代码格式检查以及自动修复 ```bash