add docker compose deployment docs

This commit is contained in:
2026-05-09 17:44:49 +08:00
parent a23ce5b08f
commit c8e093f1f0
5 changed files with 312 additions and 0 deletions

View File

@@ -102,3 +102,29 @@ curl -X POST http://localhost:3002/api/analyze-document \
API auth is required by default. For local-only development, you can set `API_AUTH_DISABLED=true`, but do not use that on a LAN or server.
For Agent-facing image editing instructions, see `API图片修改-Agent.md`.
## Docker Compose Deploy
Create `.env.local` first:
```env
GEMINI_API_KEY="YOUR_GEMINI_API_KEY"
API_AUTH_TOKEN="YOUR_LONG_RANDOM_API_TOKEN"
API_AUTH_DISABLED="false"
API_PORT="3002"
APP_PASSWORD="123456"
APP_URL="http://YOUR_SERVER_IP:3000"
```
Then start:
```bash
docker compose -f docker_compose.yaml up -d --build
```
Default ports:
- UI: `http://YOUR_SERVER_IP:3000`
- API: `http://YOUR_SERVER_IP:3002`
For migration steps and port changes, see `迁移部署说明.md`.