File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,9 +137,19 @@ fba 正在使用免费 SSL 证书:[httpsok-SSL](https://httpsok.com/p/4Qjd),
137137 命令执行期间遇到镜像拉取问题请自行 Google
138138 :::
139139
140+ ::: tabs
141+ @tab 默认端口映射
142+
143+ ``` shell:no-line-numbers
144+ docker compose up -d --build
145+ ```
146+
147+ @tab 自定义端口映射
148+
140149 ``` shell:no-line-numbers
141- docker- compose up -d --build
150+ docker compose --env-file deploy/backend/docker- compose/.env.docker up -d --build
142151 ```
152+ :::
143153
1441546 . 等待命令执行完成
145155 ::::
@@ -151,7 +161,7 @@ fba 正在使用免费 SSL 证书:[httpsok-SSL](https://httpsok.com/p/4Qjd),
151161## 注意事项
152162
153163::: warning
154- 不建议频繁使用 ` docker- compose up -d --build ` 命令,此命令每次执行都会重新构建容器,并将原容器自动本地备份保留,这会导致硬盘空间迅速锐减
164+ 不建议频繁使用 ` docker compose up -d --build ` 命令,此命令每次执行都会重新构建容器,并将原容器自动本地备份保留,这会导致硬盘空间迅速锐减
155165:::
156166
157167[ 15 个 Docker 容器自动化管理的脚本] ( https://www.yuque.com/fcant/devops/itkfyytisf9z84y6 ) {.read-more}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ title: Docker 部署
3636 在项目根目录中打开终端,执行以下命令
3737
3838 ``` shell:no-line-numbers
39- docker- compose up -d --build
39+ docker compose up -d --build
4040 ```
4141
4242::::
You can’t perform that action at this time.
0 commit comments