本地 up
- 作者仓库星标 0
- 作者仓库 skills-registry
Start the local dev stack
The local stack is defined in docker/docker-compose.local.yml. It already sets AUTH_MODE=none and ALLOW_INSECURE_LOCAL=true on the backend, so no extra env vars are needed.
Steps
Check whether containers are already running:
docker compose -f docker/docker-compose.local.yml psIf nothing is up, start the stack in the background:
docker compose -f docker/docker-compose.local.yml up -d --buildUse
--buildso code changes since the last run are picked up. Omit it if the user explicitly wants a fast restart without rebuilding.After
upreturns, confirm both services are healthy:docker compose -f docker/docker-compose.local.yml psPrint the URLs:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- Backend docs (FastAPI Swagger): http://localhost:8000/docs
If the user wants live logs, tail them:
docker compose -f docker/docker-compose.local.yml logs -f
Troubleshooting
- Port 3000 or 8000 already in use: identify the holder with
lsof -i :3000/lsof -i :8000and ask the user before killing anything. - Backend can't write to
/data/db: the named volumedolls_dbis docker-managed — no host path needed. Don't propose bind-mounts unless the user asks. - Frontend hot reload not working:
Dockerfile.devrunsvitewithhost: 0.0.0.0; confirm the container has the source mounted if someone customized the compose file. - Auth errors despite
AUTH_MODE=none:ALLOW_INSECURE_LOCAL=truemust also be set — the backend refusesnonewithout it. Both are already indocker-compose.local.yml; if missing, the file was edited.
Shutting down
docker compose -f docker/docker-compose.local.yml down
Add -v only if the user explicitly wants to wipe the SQLite DB and uploaded photos.
<!-- tomevault:4.0:skill_md:2026-05-22 -->Source: bronweg/doll-inventory — distributed by TomeVault.
- 流狐分类
- 运维部署
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- Docker
- 底层运行要求
- Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 读取环境变量
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Check whether containers are already running: If nothing is up, start the stack in the background: Use --build so code changes since the last run are picked up. Omit it if the user explicitly wants a fast restart without rebuilding.
Port 3000 or 8000 already in use: identify the holder with lsof -i :3000 / lsof -i :8000 and ask the user before killing anything. Backend can't write to /data/db: the named volume dollsdb is docker-managed — no host path needed. Don't propose bind-mounts…
Add -v only if the user explicitly wants to wipe the SQLite DB and uploaded photos. Source: bronweg/doll-inventory — distributed by TomeVault. <!-- tomevault:4.0:skillmd:2026-05-22 -->
# Start the local dev stack
The local stack is defined in `docker/docker-compose.local.yml`. It already sets `AUTH_MODE=none` and `ALLOW_INSECURE_LOCAL=true` on the backend, so no extra env vars are needed.
## Steps
1. Check whether containers are already running:
```bash
docker compose -f docker/docker-compose.local.yml ps
```
2. If nothing is up, start the stack in the background:
```bash
docker compose -f docker/docker-compose.local.yml up -d --build
```
Use `--build` so code changes since the last run are picked up. Omit it if the user explicitly wants a fast restart without rebuilding.
3. After `up` returns, confirm both services are healthy:
```bash
docker compose -f docker/docker-compose.local.yml ps
```
4. Print the URLs:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- Backend docs (FastAPI Swagger): http://localhost:8000/docs
5. If the user wants live logs, tail them:
```bash
docker compose -f docker/docker-compose.local.yml logs -f
```
## Troubleshooting
- **Port 3000 or 8000 already in use**: identify the holder with `lsof -i :3000` / `lsof -i :8000` and ask the user before killing anything.
- **Backend can't write to `/data/db`**: the named volume `dolls_db` is docker-managed — no host path needed. Don't propose bind-mounts unless the user asks.
- **Frontend hot reload not working**: `Dockerfile.dev` runs `vite` with `host: 0.0.0.0`; confirm the container has the source mounted if someone customized the compose file.
- **Auth errors despite `AUTH_MODE=none`**: `ALLOW_INSECURE_LOCAL=true` must also be set — the backend refuses `none` without it. Both are already in `docker-compose.local.yml`; if missing, the file was edited.
## Shutting down
```bash
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Steps → Troubleshooting → Shutting down
要点 -> Port 3000 or 8000 already in use · Backend can't write to /data/db · Frontend hot reload not working · Auth errors despite AUTHMODE=none
文件/命令 -> docker/docker-compose.local.yml · AUTHMODE=none · ALLOWINSECURELOCAL=true · --build · lsof -i :3000 · lsof -i :8000 · /data/db · dollsdb
内容 SHA-256 -> 21663a9d0051
方法与流程
适用与边界
原文中的明确线索
docker/docker-compose.local.yml、AUTHMODE=none、ALLOWINSECURELOCAL=true、--build、lsof -i :3000、lsof -i :8000、/data/db、dollsdb