重构为Monorepo:拆分xhs/xhh应用与core包并完成双服务部署改造

This commit is contained in:
2026-03-03 16:06:16 +08:00
parent ed7fbdd5c2
commit 2cbd6b28b2
84 changed files with 6332 additions and 7678 deletions
+38 -8
View File
@@ -1,19 +1,49 @@
services:
app:
build: .
image: social-mcp:latest
container_name: social-mcp
mcp-xhs:
build:
context: .
dockerfile: Dockerfile
args:
APP_NAME: xhs-mcp
image: social-mcp-xhs:latest
container_name: mcp-xhs
ports:
- "3010:3000"
- "9527:9527"
shm_size: '1gb'
volumes:
- /data/social-mcp:/home/appuser/.social-mcp
- /data/mcp-xhs:/home/appuser/.social-mcp-xhs
environment:
- NODE_ENV=production
- HOST=0.0.0.0
- PORT=3000
- PORT=9527
- HEADLESS=true
- COOKIE_DIR=/home/appuser/.social-mcp
- COOKIE_DIR=/home/appuser/.social-mcp-xhs
- APP_NAME=xhs-mcp
- ALLOW_REMOTE=yes-i-understand-the-risk
restart: unless-stopped
networks:
- nginx
mcp-xhh:
build:
context: .
dockerfile: Dockerfile
args:
APP_NAME: xhh-mcp
image: social-mcp-xhh:latest
container_name: mcp-xhh
ports:
- "9528:9528"
shm_size: '1gb'
volumes:
- /data/mcp-xhh:/home/appuser/.social-mcp-xhh
environment:
- NODE_ENV=production
- HOST=0.0.0.0
- PORT=9528
- HEADLESS=true
- COOKIE_DIR=/home/appuser/.social-mcp-xhh
- APP_NAME=xhh-mcp
- ALLOW_REMOTE=yes-i-understand-the-risk
restart: unless-stopped
networks: