ps
All checks were successful
构建并部署 / build-and-deploy (push) Successful in 2m10s

This commit is contained in:
jeremygan2021
2026-02-13 13:55:22 +08:00
parent 6472d206ee
commit 0aef752ea3

View File

@@ -67,9 +67,16 @@ jobs:
# 拉取最新镜像 # 拉取最新镜像
docker pull 121.43.104.161:6500/quant-speed-page:latest docker pull 121.43.104.161:6500/quant-speed-page:latest
# 启动新容器/ # 启动新容器
# 映射端口 3000:80 (宿主机 3000 -> 容器 80)
# 添加日志限制防止磁盘写满
docker run -d \ docker run -d \
--name quant-speed-page \ --name quant-speed-page \
--restart unless-stopped \ --restart unless-stopped \
-p 8080:80 \ --log-opt max-size=10m \
--log-opt max-file=3 \
-p 3000:80 \
121.43.104.161:6500/quant-speed-page:latest 121.43.104.161:6500/quant-speed-page:latest
# 清理无用的旧镜像
docker image prune -f