# ReVoxelSeg DICOM 通用 Docker 部署版。 # 默认只启动 Web 服务;如需 FRPC,先复制 .env.example 为 .env 并填写参数, # 再执行:docker compose --profile frpc up -d --build name: revoxelseg-dicom-generic services: revoxelseg_web: image: ${REVOXELSEG_IMAGE:-revoxelseg-dicom:generic} build: context: . dockerfile: Dockerfile args: HTTP_PROXY: ${HTTP_PROXY:-} HTTPS_PROXY: ${HTTPS_PROXY:-} NO_PROXY: ${NO_PROXY:-localhost,127.0.0.1,revoxelseg_web,revoxelseg_frpc} restart: unless-stopped ports: - "${HOST_PORT:-4000}:4000" environment: NODE_ENV: production PORT: 4000 APP_URL: ${APP_URL:-http://localhost:4000} TRUST_PROXY: ${TRUST_PROXY:-true} HTTP_PROXY: ${HTTP_PROXY:-} HTTPS_PROXY: ${HTTPS_PROXY:-} http_proxy: ${HTTP_PROXY:-} https_proxy: ${HTTPS_PROXY:-} NO_PROXY: ${NO_PROXY:-localhost,127.0.0.1,revoxelseg_web,revoxelseg_frpc} volumes: - ${REVOXELSEG_DATA_DIR:-./data}:/app/WebSite/data - ${REVOXELSEG_EXPORTS_DIR:-./exports}:/app/WebSite/exports healthcheck: test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:4000/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""] interval: 10s timeout: 5s retries: 12 start_period: 20s revoxelseg_frpc: image: ${FRPC_IMAGE:-snowdreamtech/frpc:latest} restart: unless-stopped profiles: - frpc entrypoint: ["/bin/sh"] command: - -c - | cat > /tmp/frpc.toml <