This commit is contained in:
mayunfei committed 2026-12-04 09:44:59 +08:00
commit 5f8428a318
1688 files changed
+39031

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
# 开发/整包构建用(需要源码)。
# 生产分开部署、无源码:用 deploy/gateway.compose.yaml + deploy/record-bot.compose.yaml
services:
gateway:
image: ${GATEWAY_IMAGE:-ghcr.io/kadxy/weixin-ilink-gateway:latest}
build:
context: ./weixin-ilink-gateway
dockerfile: Dockerfile
container_name: weixin-ilink-gateway
restart: unless-stopped
ports:
- "${GATEWAY_PORT:-29527}:3000"
environment:
API_KEY: ${GATEWAY_API_KEY:?set GATEWAY_API_KEY}
PORT: "3000"
DATA_DIR: /app/data
WEBHOOK_URLS: ${WEBHOOK_URLS:-http://record-bot:8080/webhook/weixin}
WEBHOOK_TOKEN: ${GATEWAY_WEBHOOK_TOKEN:-}
MAX_DOWNLOAD_SIZE_MB: ${MAX_DOWNLOAD_SIZE_MB:-128}
volumes:
- ${GATEWAY_DATA_DIR:-./data/gateway}:/app/data
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/status"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
record-bot:
image: ${RECORD_BOT_IMAGE:-record-bot:local}
build:
context: ./record-bot
dockerfile: Dockerfile
container_name: record-bot
restart: unless-stopped
depends_on:
- gateway
ports:
- "${RECORD_BOT_PORT:-5080}:8080"
environment:
ASPNETCORE_ENVIRONMENT: Production
TZ: Asia/Shanghai
Gateway__BaseUrl: http://gateway:3000
Gateway__ApiKey: ${GATEWAY_API_KEY:?set GATEWAY_API_KEY}
RecordBot__WebhookToken: ${RECORD_WEBHOOK_TOKEN:-}
RecordBot__ReplyOnRecord: "true"
RecordBot__ConnectionString: "Data Source=/app/data/records.db"
RecordBot__MediaDir: /app/data/media
RecordBot__BackupDir: /app/data/backups
RecordBot__TimeZoneId: Asia/Shanghai
Llm__Enabled: ${LLM_ENABLED:-true}
Llm__ApiKey: ${LLM_API_KEY:-}
Llm__BaseUrl: ${LLM_BASE_URL:-https://dashscope.aliyuncs.com/compatible-mode/v1}
Llm__Model: ${LLM_MODEL:-qwen3.8-max}
volumes:
- ${RECORD_DATA_DIR:-./data/record-bot}:/app/data