snowy/aliyun-flow-document/部署文档

28 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

###使用说明
使用阿里云云效自动发布Docker镜像需要先开通阿里云ARC容器服务
开通后创建JDK 与Nginx的阿里云镜像在创建控制台前端与接口后端的镜像仓库然后根据下列变量名部署到云效部署上。
参数说明
REGISTRY_TAG 构建的容器标签 举例 标签.${DATETIME}
DOCKER_USERNAME 私有镜像仓库用户名 developer@test.com
PROJECT_NAME 容器项目名 举例 system-api 这个容器名需要在Dockerfile-Console中的VAR_HOST变量相同不然无法让反向代理访问到后台接口
EXPOSE_PORT 对外暴露端口 举例 82
INTERNAL_PORT 内部运行端口 举例 82
RELEASE_TAG 部署到本地的镜像标签 举例 eb/system-api:latest
REGISTRY_IMAGE 容器所在镜像的地址 举例 registry-internal.cn-beijing.aliyuncs.com/mojiong/membership-system
REGISTRY_URL 容器仓库地址 举例 registry-internal.cn-beijing.aliyuncs.com
NETWORK 容器的虚拟网络名 举例 system-network 用于处于同一个共享网络通过项目名的反向代理访问
./console-deployment-script 前端控制台的云效部署脚本
./api-deployment-script 接口的云效部署脚本