docs: 部署手册镜像地址改为单仓库格式 iotlcm/iotlcm:<服务名>-<版本>
官方仓库把全部镜像放在同一个镜像仓库 iotlcm/iotlcm 下,靠 tag 区分服务: .../iotlcm/iotlcm:mysql-8.0 .../iotlcm/iotlcm:iotlcm-admin-svr-v1.0.4 .../iotlcm/iotlcm:iotlcm-app-server-v1.0.2 改动页面: - prerequisites:镜像仓库章节重写,补充命名空间/镜像仓库/tag 三层结构说明, 不再提 library/ 命名空间 - configuration:镜像地址示例与 tag 规则表 - build-image:构建命令、命名规则表、基础组件同步脚本、验证命令同步改 - offline:离线镜像清单 - split:分离部署示例 已构建通过,6 个相关页面均可访问。
This commit is contained in:
@@ -64,29 +64,36 @@ docker compose version
|
||||
| 命名空间 | `iotlcm` |
|
||||
| 地域 | 西南1(成都) |
|
||||
|
||||
业务镜像路径为:
|
||||
**所有镜像都放在同一个镜像仓库** `iotlcm/iotlcm` 下,靠 tag 区分服务与版本:
|
||||
|
||||
```text
|
||||
crpi-qflrqrxoohlkkvgc.cn-chengdu.personal.cr.aliyuncs.com/iotlcm/iotlcm-admin-svr:1.0.3
|
||||
crpi-qflrqrxoohlkkvgc.cn-chengdu.personal.cr.aliyuncs.com/iotlcm/iotlcm-openapi:1.0.3
|
||||
...
|
||||
crpi-.../iotlcm/iotlcm:mysql-8.0
|
||||
crpi-.../iotlcm/iotlcm:redis-7.2
|
||||
crpi-.../iotlcm/iotlcm:iotlcm-admin-svr-v1.0.4
|
||||
crpi-.../iotlcm/iotlcm:iotlcm-openapi-v1.0.4
|
||||
crpi-.../iotlcm/iotlcm:iotlcm-app-server-v1.0.2
|
||||
```
|
||||
|
||||
tag 格式统一为 **`<服务名>-<版本>`**。
|
||||
|
||||
地址结构是 `<Registry>/<命名空间>/<镜像仓库>:<tag>`,即:
|
||||
|
||||
```text
|
||||
crpi-...cn-chengdu.personal.cr.aliyuncs.com / iotlcm / iotlcm : iotlcm-admin-svr-v1.0.4
|
||||
↑ 命名空间 ↑ 镜像仓库 ↑ tag
|
||||
```
|
||||
|
||||
`docker-compose.yml` 里的镜像地址已预置为上述公网地址,一般无需修改。
|
||||
|
||||
::: tip 基础组件也在同一仓库
|
||||
MySQL、Redis、RabbitMQ、Consul、nginx 同样托管在 `library/` 命名空间下,不从 Docker Hub 直连(公网不稳定且 tag 会漂)。版本已在编排文件中固定,**必须与仓库里实际同步的标签一致**。
|
||||
:::
|
||||
|
||||
::: warning 基础组件需先同步
|
||||
部署前 `library/` 下必须已有这五个镜像,否则拉取失败。同步方法见[自建镜像](build-image)的「同步基础组件」一节。
|
||||
MySQL、Redis、RabbitMQ、Consul、nginx 同样在这个仓库里(`mysql-8.0`、`redis-7.2` 等 tag),不从 Docker Hub 直连(公网不稳定且 tag 会漂)。版本已在编排文件中固定。
|
||||
:::
|
||||
|
||||
::: tip 阿里云 VPC 地址
|
||||
若部署在阿里云同地域 ECS 上,可把编排文件里的镜像前缀改为 VPC 地址,走内网流量、不消耗公网带宽:
|
||||
若部署在阿里云同地域 ECS 上,可把编排文件里的 Registry 前缀改为 VPC 地址,走内网流量、不消耗公网带宽:
|
||||
|
||||
```yaml
|
||||
image: 'crpi-qflrqrxoohlkkvgc-vpc.cn-chengdu.personal.cr.aliyuncs.com/library/mysql:8.0'
|
||||
image: 'crpi-qflrqrxoohlkkvgc-vpc.cn-chengdu.personal.cr.aliyuncs.com/iotlcm/iotlcm:mysql-8.0'
|
||||
```
|
||||
:::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user