add docker compose deployment docs
This commit is contained in:
26
README.md
26
README.md
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user