Files
ulthon_admin/source/stack/stack.json
augushong ddaa0ca5a9 feat(stack): 新增 docker-dev-sync 模式,优化 Windows 下 Docker 开发 I/O 性能
- 新增 source/stack/docker-dev-sync/ 模式目录
- 宿主代码映射到 /var/www/source(bind mount 中转)
- 容器内 rsync 定时同步到 /var/www/html(原生文件系统)
- vendor 由 Docker build 管理,不参与同步
- rsync 使用 --no-perms 避免保留 Windows 源文件权限
- 排除 docker-dev/、runtime/、.git/ 等无关目录
- SYNC_INTERVAL 环境变量可配置轮询间隔(默认 3 秒)
- 更新 stack.json 注册模式并声明 sync.sh 为托管文件
- 调整 CI 构建流程:先安装依赖再切换 stack 模式
2026-06-01 22:32:29 +08:00

41 lines
1.1 KiB
JSON
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.

{
"default_mode": "default",
"managed_files": [
"Dockerfile",
"docker-compose.yaml",
".gitea/workflows/build-and-deploy.yml",
".docker-dev.env",
".dockerignore",
"source/docker/zzz-dev.ini",
"source/docker/zzz-xdebug.ini",
"source/docker/run.sh",
"source/docker/sync.sh"
],
"modes": {
"default": {
"description": "代码库默认行为基线php think run",
"author_only": false
},
"docker-serve": {
"description": "Docker 部署模式基于基础镜像nginx+php-fpm",
"author_only": false
},
"full": {
"description": "全量构建模式(兼容历史行为)",
"author_only": false
},
"base-build": {
"description": "基础镜像 + 应用构建模式",
"author_only": true
},
"docker-dev": {
"description": "Docker 开发模式nginx+php-fpm+MySQL+Redis+phpMyAdmin+Xdebug",
"author_only": false
},
"docker-dev-sync": {
"description": "Docker 开发模式 - Windows I/O 优化rsync 同步,避免 bind mount 慢速问题)",
"author_only": false
}
}
}