# wedo-hub 部署(CentOS 7 宿主机 node 版本过老,统一用容器跑,与 ocr-service 同模式) # 对外入口: https://gogs.wxapp.info/wedo-hub/ (宝塔 nginx file-upload.conf 反代 127.0.0.1:8790) # 口令在 .env(git 忽略): WEDO_TOKEN=xxx services: wedo-hub: image: node:20-alpine container_name: wedo-hub restart: unless-stopped working_dir: /app command: node server.js environment: WEDO_PORT: "8790" WEDO_TOKEN: ${WEDO_TOKEN} ports: - "127.0.0.1:8790:8790" # 仅本机 nginx 可达,不经 token 校验的端口不暴露公网 volumes: - ./:/app # events.json 持久化在宿主机仓库目录(git 已忽略)