docker-compose.yml 680 B

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