Files
REVOXELSEG_DICOM/docker_compose.yaml
2026-05-21 11:18:50 +08:00

61 lines
1.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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