docs(stack): restore docker-dev-sync as independent mode in docs

This commit is contained in:
augushong
2026-07-22 22:47:46 +08:00
parent 0a04181d12
commit 0adc497818
4 changed files with 11 additions and 8 deletions

View File

@@ -24,5 +24,5 @@
- 模式目录内的 `docker-compose.yaml` 是该模式的栈定义,bind mount 通常指向仓库根目录。
- 在容器外执行 `php think`:`docker compose -f source/stack/<mode>/docker-compose.yaml exec <service> php think ...`,或在模式目录内 `docker compose exec <service> php think ...`。
- 示例:`docker compose -f source/stack/docker-dev/docker-compose.yaml exec ulthon_admin php think tools:http:call`。
- **可用模式**见 `source/stack/stack.json` 与 `source/stack/README.md`(default / docker-serve / docker-dev / full / author 等)。
- **可用模式**见 `source/stack/stack.json` 与 `source/stack/README.md`(default / docker-serve / docker-dev / docker-dev-sync / full / author 等)。
- **判断技巧**:如果不确定当前是否处于容器内,看 `pwd` 是否在仓库根、根目录有无 `Dockerfile`、`docker ps` 是否有相关容器在跑。容器内执行 `php think` 不需要前缀。