2026-05-21-11-13-49 独立Docker程序包

This commit is contained in:
Codex
2026-05-21 11:18:50 +08:00
commit 57415a1a0b
337 changed files with 16747 additions and 0 deletions

60
docker_compose.yaml Normal file
View File

@@ -0,0 +1,60 @@
# ReVoxelSeg DICOM 独立 Docker 本机部署版。
# 在本目录执行docker compose -f docker_compose.yaml up -d --build
# 局域网访问http://192.168.3.11:4000/
# 公网访问https://revoxel.huijutec.cn/
name: revoxelseg-dicom-standalone
services:
revoxelseg_web:
image: revoxelseg-dicom:standalone-20260521
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "4000:4000"
environment:
NODE_ENV: production
PORT: 4000
APP_URL: http://192.168.3.11:4000
TRUST_PROXY: "true"
volumes:
- ./data:/app/WebSite/data
- ./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: snowdreamtech/frpc:latest
restart: unless-stopped
entrypoint: ["/bin/sh"]
command:
- -c
- |
cat > /tmp/frpc.toml <<'EOF'
serverAddr = "82.157.255.195"
serverPort = 7000
auth.method = "token"
auth.token = "en.xjtu.edu.cn"
transport.poolCount = 5
transport.heartbeatTimeout = -1
[[proxies]]
name = "ReVoxelSeg_DICOM"
type = "tcp"
localIP = "revoxelseg_web"
localPort = 4000
remotePort = 10008
EOF
exec frpc -c /tmp/frpc.toml
depends_on:
revoxelseg_web:
condition: service_healthy