Files
antiwear-gateway/docker-compose.redis-expose.yml
ZF sun 7d07eee2be feat: 添加数字人对接中转服务 Docker Compose 部署方案
- digital-human: FastAPI 中转服务,连接客户端与 Dify LLM 平台
- Redis: 容器内缓存,支持请求体哈希缓存(300s TTL)
- 支持通过 DH_PORT 自定义宿主机映射端口
- Redis 默认不暴露端口,通过 docker-compose.redis-expose.yml 按需开启
- 显式声明 digital-human-net 网络,容器间通过内部 DNS 互通
- 修复 redis.ConnectionError 导入路径(使用 redis.exceptions)
- Dockerfile pip 安装回退机制,避免镜像源不可用时构建失败
- 新增 .gitignore 防止 .env 密钥泄露
2026-04-22 14:24:59 +08:00

18 lines
603 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================
# Redis 端口暴露扩展配置
#
# 场景:需要从宿主机直接连接 Redis(如本地调试)时使用。
#
# 使用方式(与 docker-compose.yml 合并):
# docker compose -f docker-compose.yml -f docker-compose.redis-expose.yml up -d
#
# 注意:日常生产部署不需要此文件,直接运行 docker-compose.yml 即可。
# ============================================================
services:
redis:
ports:
- "${REDIS_EXPOSE_PORT:-6379}:6379"
networks:
- digital-human-net