2026-05-18-22-23-07 增加Docker安装包与发布配置
This commit is contained in:
68
docker_compose_Nas.yaml
Normal file
68
docker_compose_Nas.yaml
Normal file
@@ -0,0 +1,68 @@
|
||||
# ISISeg huijutec.cn / QNAP QTS Container Station deployment.
|
||||
# This file is prefilled for /share/Container/ISISeg, https://isiseg.huijutec.cn,
|
||||
# 192.168.31.7:7893 proxy, and frpc remotePort 10004.
|
||||
# Copy the package to /share/Container/ISISeg, then run this file in Container Station.
|
||||
|
||||
name: isiseg_qnap
|
||||
|
||||
services:
|
||||
isiseg_app:
|
||||
image: isiseg/app:qnap-20260518
|
||||
build:
|
||||
context: /share/Container/ISISeg
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
HTTP_PROXY: http://192.168.31.7:7893
|
||||
HTTPS_PROXY: http://192.168.31.7:7893
|
||||
NO_PROXY: localhost,127.0.0.1,192.168.31.0/24,isiseg_app
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
PORT: 8001
|
||||
PUBLIC_URL: https://isiseg.huijutec.cn
|
||||
HTTP_PROXY: http://192.168.31.7:7893
|
||||
HTTPS_PROXY: http://192.168.31.7:7893
|
||||
http_proxy: http://192.168.31.7:7893
|
||||
https_proxy: http://192.168.31.7:7893
|
||||
NO_PROXY: localhost,127.0.0.1,192.168.31.0/24,isiseg_app
|
||||
ports:
|
||||
- "10004:8001"
|
||||
volumes:
|
||||
- /share/Container/ISISeg/data/uploads:/app/storage/uploads
|
||||
- /share/Container/ISISeg/data/jobs:/app/storage/jobs
|
||||
healthcheck:
|
||||
# Use 127.0.0.1 to avoid localhost IPv6 preference on some NAS firmwares.
|
||||
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8001/api/health', timeout=3).read()\""]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
start_period: 20s
|
||||
|
||||
isiseg_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 = "ISISeg_QNAP"
|
||||
type = "tcp"
|
||||
localIP = "isiseg_app"
|
||||
localPort = 8001
|
||||
remotePort = 10004
|
||||
EOF
|
||||
exec frpc -c /tmp/frpc.toml
|
||||
depends_on:
|
||||
isiseg_app:
|
||||
condition: service_healthy
|
||||
Reference in New Issue
Block a user