Files
WeChatBot/record-bot/docker-compose.yaml
T
2026-12-04 09:44:59 +08:00

32 lines
1.2 KiB
YAML

# 本地带源码构建用。生产无源码、分开部署:见 ../deploy/record-bot.compose.yaml
services:
record-bot:
image: ${RECORD_BOT_IMAGE:-record-bot:local}
build:
context: .
dockerfile: Dockerfile
container_name: record-bot
ports:
- "${RECORD_BOT_PORT:-5080}:8080"
environment:
ASPNETCORE_ENVIRONMENT: Production
TZ: Asia/Shanghai
Gateway__BaseUrl: ${GATEWAY_BASE_URL:-http://host.docker.internal:29527}
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}:/app/data
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped