mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
ci(deploy): 优化部署配置并增加健康检查
All checks were successful
build-and-deploy / 直传代码并部署到 Host15 (push) Successful in 1m35s
All checks were successful
build-and-deploy / 直传代码并部署到 Host15 (push) Successful in 1m35s
- 将 Docker Compose 卷映射从挂载整个目录改为仅挂载必要的运行时目录,以提高部署安全性和性能 - 在 CI/CD 部署流程中添加容器状态检查和应用健康验证步骤,确保部署后应用正常运行
This commit is contained in:
@@ -13,8 +13,7 @@ services:
|
||||
ports:
|
||||
- "88:80" # HTTP
|
||||
volumes:
|
||||
- ./:/var/www/html # 直接分发代码可以去掉注释并将下面的目录增加注释
|
||||
# - ./runtime:/var/www/html/runtime
|
||||
# - ./public/storage:/var/www/html/public/storage
|
||||
# - ./public/build:/var/www/html/public/build
|
||||
# - ./storage:/var/www/html/storage
|
||||
- ./runtime:/var/www/html/runtime
|
||||
- ./public/storage:/var/www/html/public/storage
|
||||
- ./public/build:/var/www/html/public/build
|
||||
- ./storage:/var/www/html/storage
|
||||
|
||||
Reference in New Issue
Block a user