8da5f40c9f
多平台社交自动化 MCP 服务,首批支持小红书。 - 13 个 MCP 工具:登录管理、内容浏览、发布、互动 - 13 个 REST API 端点,支持 Bearer token 认证和限流 - BrowserManager:串行队列、背压、崩溃恢复 - Cookie 持久化:原子写入、0600 权限 - 安全:DNS rebinding 防御、错误脱敏、深层日志 redact - Docker 部署支持 - 28 个单元测试全部通过
36 lines
690 B
YAML
36 lines
690 B
YAML
services:
|
|
social-mcp:
|
|
build:
|
|
context: ..
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "127.0.0.1:3000:3000"
|
|
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:/home/appuser/.social-mcp
|
|
environment:
|
|
- NODE_ENV=production
|
|
- HOST=0.0.0.0
|
|
- PORT=3000
|
|
- HEADLESS=true
|
|
- ALLOW_REMOTE=yes-i-understand-the-risk
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
cookie-data:
|