Files
ulthon_admin/source/stack/base-build/docker-compose.yaml
augushong c423e2cb3d
All checks were successful
build-and-deploy / 直传代码并部署到 Host15 (push) Successful in 1m35s
ci(deploy): 优化部署配置并增加健康检查
- 将 Docker Compose 卷映射从挂载整个目录改为仅挂载必要的运行时目录,以提高部署安全性和性能
- 在 CI/CD 部署流程中添加容器状态检查和应用健康验证步骤,确保部署后应用正常运行
2026-05-01 19:13:38 +08:00

20 lines
627 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: ulthon_admin
services:
ulthon_admin:
# 正式环境中您应当构建一个完整镜像使用镜像名称或id运行不要使用dockerfile
# image: ulthon/ulthon_admin:v1
build:
context: . # Dockerfile 所在的目录
dockerfile: Dockerfile # Dockerfile 的名称
restart: always
ports:
- "88:80" # HTTP
volumes:
- ./runtime:/var/www/html/runtime
- ./public/storage:/var/www/html/public/storage
- ./public/build:/var/www/html/public/build
- ./storage:/var/www/html/storage