feat: 添加 Jenkins 部署配置
- Jenkinsfile: GenericTrigger webhook 触发,构建镜像并部署 - docker-compose.yml: nginx 外部网络,shm_size 1g - 宿主机端口映射 3010:3000
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
image: social-mcp:latest
|
||||
container_name: social-mcp
|
||||
ports:
|
||||
- "3010:3000"
|
||||
shm_size: '1gb'
|
||||
volumes:
|
||||
- /data/social-mcp:/home/appuser/.social-mcp
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- HOST=0.0.0.0
|
||||
- PORT=3000
|
||||
- HEADLESS=true
|
||||
- COOKIE_DIR=/home/appuser/.social-mcp
|
||||
- ALLOW_REMOTE=yes-i-understand-the-risk
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- nginx
|
||||
|
||||
networks:
|
||||
nginx:
|
||||
external: true
|
||||
Reference in New Issue
Block a user