60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
services:
|
|
imeeting-backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8001:8001"
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
# Python运行环境
|
|
- PYTHONPATH=/app
|
|
- PYTHONUNBUFFERED=1
|
|
|
|
# 数据库配置
|
|
- DB_HOST=host.docker.internal
|
|
- DB_USER=root
|
|
- DB_PASSWORD=sagacity
|
|
- DB_NAME=imeeting
|
|
- DB_PORT=3306
|
|
|
|
# Redis配置
|
|
- REDIS_HOST=host.docker.internal
|
|
- REDIS_PORT=6379
|
|
- REDIS_DB=6
|
|
- REDIS_PASSWORD=
|
|
|
|
# API配置
|
|
- API_HOST=0.0.0.0
|
|
- API_PORT=8001
|
|
|
|
# 应用配置
|
|
- BASE_URL=http://imeeting.unisspace.com
|
|
|
|
# 七牛云配置
|
|
- QINIU_ACCESS_KEY=A0tp96HCtg-wZCughTgi5vc2pJnw3btClwxRE_e8
|
|
- QINIU_SECRET_KEY=Lj-MSHpaVbmzpS86kMIjmwikvYOT9iPBjCk9hm6k
|
|
- QINIU_BUCKET=imeeting
|
|
- QINIU_DOMAIN=t0vogyxkz.hn-bkt.clouddn.com
|
|
|
|
# LLM配置
|
|
- QWEN_API_KEY=sk-c2bf06ea56b4491ea3d1e37fdb472b8f
|
|
- LLM_MODEL_NAME=qwen-plus
|
|
- LLM_TIMEOUT=120
|
|
- LLM_TEMPERATURE=0.7
|
|
- LLM_TOP_P=0.9
|
|
|
|
volumes:
|
|
# 挂载上传目录保持数据持久化
|
|
- ./uploads:/app/uploads
|
|
- ./config:/app/config
|
|
restart: unless-stopped
|
|
container_name: imeeting-backend
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s |