# 所有网站类服务统一放在 project name: website 下 # 只使用唯一 MongoDB:datacenter_mongodb(宿主机 27017),不在此编排中新建 MongoDB # 使用方式:在神射手目录执行 docker compose up -d # 神射手:http://localhost:3117 玩值电竞:http://localhost:3001 OpenClaw 网关:http://localhost:18789 name: website services: shensheshou: build: . image: shensheshou:latest container_name: website-shensheshou environment: NODE_ENV: production PORT: "3117" # 唯一 MongoDB:datacenter_mongodb(宿主机 27017),若启用认证需带账号 MONGODB_URI: "mongodb://admin:admin123@host.docker.internal:27017/?authSource=admin" ports: - "3117:3117" extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped networks: - website # 玩值电竞 Web:与神射手同属 website,共用唯一 MongoDB(datacenter_mongodb 27017) wanzhi-web: build: context: ../../3、自营项目/玩值电竞App dockerfile: Dockerfile args: BUILD_TIME: ${BUILD_TIME:-} image: wanzhi-app:latest container_name: website-wanzhi-web environment: MONGODB_URI: mongodb://admin:admin123@host.docker.internal:27017/?authSource=admin NODE_ENV: production ports: - "3001:3000" extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped networks: - website # 抖音解析 API:供 n8n 工作流调用,一键解析文案(可选下载视频) douyin-api: image: python:3.11-slim container_name: website-douyin-api working_dir: /app environment: DOUYIN_OUTPUT_DIR: /data/douyin_output volumes: - ../../../个人/卡若AI/03_卡木(木)/木叶_视频内容/抖音视频解析/脚本:/app - /Users/karuo/Documents/卡若Ai的文件夹/视频:/data/douyin_output ports: - "3099:3099" command: ["sh", "-c", "pip install -q flask requests && python douyin_api.py"] restart: unless-stopped networks: - website # n8n 工作流自动化:归入 website 分类,端口 5678,界面中文(社区汉化镜像) n8n: image: blowsnow/n8n-chinese:latest container_name: website-n8n environment: TZ: Asia/Shanghai GENERIC_TIMEZONE: Asia/Shanghai N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: "true" N8N_RUNNERS_ENABLED: "true" N8N_DEFAULT_LOCALE: "zh-CN" ports: - "5678:5678" volumes: - n8n_data:/home/node/.n8n restart: unless-stopped networks: - website # OpenClaw 网关:网站类服务,已迁入 website 编排;镜像需在 OpenClaw 项目内先 build(openclaw:local) # 需访问本机 Ollama 时通过 host.docker.internal:11434 openclaw-gateway: image: openclaw:local container_name: website-openclaw-gateway env_file: - ../../8、小工具/Docker项目/OpenClaw/openclaw/.env environment: HOME: /home/node TERM: xterm-256color extra_hosts: - "host.docker.internal:host-gateway" volumes: - /Users/karuo/.openclaw:/home/node/.openclaw - /Users/karuo/.openclaw/workspace:/home/node/.openclaw/workspace ports: - "18789:18789" - "18790:18790" init: true restart: unless-stopped command: ["node", "dist/index.js", "gateway", "--bind", "lan", "--port", "18789"] networks: - website networks: website: driver: bridge volumes: n8n_data: