Files
ulthon_admin/docker-compose.yaml
augushong 394782a989
Some checks failed
build-and-deploy / 直传代码并部署到 Host15 (push) Failing after 34s
ci: 添加 Gitea CI/CD 工作流用于构建与部署
- 新增 .gitea/workflows/build-and-deploy.yml 文件,定义完整的 CI/CD 流程
- 工作流在 push 或手动触发时运行,负责打包代码、生成环境配置、传输至远程主机并部署
- 更新 docker-compose.yaml,添加项目名称配置以适配部署流程
- 部署流程包含安全检查、旧版本清理和滚动更新机制
2026-04-15 21:02:07 +08:00

21 lines
739 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:
- ./:/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