Files
social-mcp/deploy/docker-compose.yml
T

77 lines
1.6 KiB
YAML

services:
mcp-xhs:
build:
context: ..
dockerfile: Dockerfile
args:
APP_NAME: xhs-mcp
ports:
- "127.0.0.1:9527:9527"
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-xhs:/home/appuser/.social-mcp-xhs
environment:
- NODE_ENV=production
- HOST=0.0.0.0
- 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-xhs:
cookie-data-xhh: