重构为Monorepo:拆分xhs/xhh应用与core包并完成双服务部署改造
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
services:
|
||||
social-mcp:
|
||||
mcp-xhs:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
APP_NAME: xhs-mcp
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
- "127.0.0.1:9527:9527"
|
||||
shm_size: '1gb'
|
||||
deploy:
|
||||
resources:
|
||||
@@ -22,14 +24,53 @@ services:
|
||||
tmpfs:
|
||||
- /tmp:size=512m
|
||||
volumes:
|
||||
- cookie-data:/home/appuser/.social-mcp
|
||||
- cookie-data-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-xhs
|
||||
- APP_NAME=xhs-mcp
|
||||
- ALLOW_REMOTE=yes-i-understand-the-risk
|
||||
restart: unless-stopped
|
||||
|
||||
mcp-xhh:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
APP_NAME: xhh-mcp
|
||||
ports:
|
||||
- "127.0.0.1:9528:9528"
|
||||
shm_size: '1gb'
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2g
|
||||
cpus: '2.0'
|
||||
reservations:
|
||||
memory: 1g
|
||||
cpus: '1.0'
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop:
|
||||
- ALL
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp:size=512m
|
||||
volumes:
|
||||
- cookie-data-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
|
||||
|
||||
volumes:
|
||||
cookie-data:
|
||||
cookie-data-xhs:
|
||||
cookie-data-xhh:
|
||||
|
||||
Reference in New Issue
Block a user