Change to portainer ver.

This commit is contained in:
ChenKaiLiuG
2025-12-20 12:16:48 +08:00
parent 506836f22e
commit 76bb20b186
6 changed files with 37 additions and 4 deletions

View File

@@ -1,4 +1,34 @@
# Cloudflare Tunnel Token
# Gitea Repository URL (替換為您的 Gitea 伺服器)
# 格式: http://gitea.example.com/username/tobiichiGPT.git
GIT_REPO_URL=http://your-gitea-server/your-username/tobiichiGPT.git
# Git Branch (預設使用 main)
GIT_BRANCH=main
# Container Registry (可選 - 如果要使用預建映像)
# 例如: gitea.example.com:5000
REGISTRY_URL=
# ========================================
# Gitea Repository 設定
# ========================================
# Gitea Repository URL (格式: http://gitea.example.com/username/tobiichiGPT.git)
# 如需認證可使用: http://username:token@gitea.example.com/username/tobiichiGPT.git
GIT_REPO_URL=http://your-gitea-server/your-username/tobiichiGPT.git
# Git Branch (預設: main)
GIT_BRANCH=main
# ========================================
# Container Registry (可選)
# ========================================
# 如果已預先建置映像,填入 Registry 前綴 (例如: gitea.example.com:5000/username/)
# 留空則每次從 Gitea 即時建置
REGISTRY_URL=
# ========================================
# Cloudflare Tunnel (可選)
# ========================================
# 請到 Cloudflare Zero Trust Dashboard 建立 Tunnel 並取得 Token
# https://one.dash.cloudflare.com/
CLOUDFLARE_TUNNEL_TOKEN=your-tunnel-token-here
CLOUDFLARE_TUNNEL_TOKEN=

View File

@@ -1,9 +1,12 @@
version: '3.8'
services:
# 人工回覆伺服器
# 人工回覆伺服器 (從 Gitea 建置)
human-reply-server:
build: .
image: ${REGISTRY_URL}tobiichi-gpt:latest
build:
context: ${GIT_REPO_URL}#${GIT_BRANCH:-main}
dockerfile: human-gpt/Dockerfile
container_name: tobiichi-gpt
ports:
- "8000:8000"