docs: add Docker deployment instructions to README files (#161)

- Added a new section for deploying using Docker in both English and Chinese README files.
- Included detailed steps for building the Docker image, starting services with Docker Compose, and configuration notes.
- Updated the Docker README with important notes regarding image storage and local image usage.
This commit is contained in:
zy
2025-09-25 23:54:52 +08:00
committed by GitHub
parent 9fcc7402b6
commit d08b1d4a43
3 changed files with 94 additions and 5 deletions

View File

@@ -247,6 +247,48 @@ go env -w GOPROXY=https://goproxy.io,direct
</details>
**Method 3: Using Docker Container (Simplest)**
<details>
<summary>Docker Deployment Details</summary>
Using Docker deployment is the simplest method, requiring no development environment installation.
**1. Build Image**
```bash
# Run in project root directory
docker build -t xpzouying/xiaohongshu-mcp .
```
**2. Start with Docker Compose**
```bash
# Enter docker directory
cd docker
# Start service
docker compose up -d
# View logs
docker compose logs -f
# Stop service
docker compose stop
```
**3. Configuration Notes**
The Docker version automatically:
- Configures Chrome browser and Chinese fonts
- Mounts `./data` for storing cookies
- Mounts `./images` for storing publish images
- Exposes port 18060 for MCP connection
For detailed instructions, please refer to: [Docker Deployment Guide](./docker/README.md)
</details>
For Windows issues, check here first: [Windows Installation Guide](./docs/windows_guide.md)
### 1.2. Login