- 后端:文本/转写后 AI 生成改为独立任务,避免断连取消整轮;按需 TTS 等与 WS 改动 - 前端:RealtimeSession 重绑 UI 时恢复流式 buffer;列表 onPressIn/挂载预热、已有会话立即 push - 同步会话相关类型、i18n、测试与 env/资源等累计改动 Co-authored-by: Cursor <cursoragent@cursor.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
# 开发环境 Docker Compose
|
||
# 使用方法: docker compose -f docker-compose.dev.yml up -d
|
||
#
|
||
# 宿主端口为项目约定的固定高位端口(避免与本机常用 5432/6379 冲突),与本仓库 .env.example 对齐:
|
||
# PostgreSQL 127.0.0.1:48291 → 容器 5432
|
||
# Redis 127.0.0.1:48307 → 容器 6379
|
||
|
||
services:
|
||
# PostgreSQL 数据库(pg17 + pgvector,memory 模块需要 vector 类型)
|
||
postgres:
|
||
image: pgvector/pgvector:pg17
|
||
container_name: life-echo-postgres-dev
|
||
ports:
|
||
- "127.0.0.1:48291:5432"
|
||
environment:
|
||
POSTGRES_USER: postgres
|
||
POSTGRES_PASSWORD: postgres
|
||
POSTGRES_DB: life_echo
|
||
volumes:
|
||
- postgres_data_dev:/var/lib/postgresql/data
|
||
restart: unless-stopped
|
||
healthcheck:
|
||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||
interval: 10s
|
||
timeout: 5s
|
||
retries: 5
|
||
|
||
# Redis 服务(用于会话存储和 Celery)
|
||
redis:
|
||
image: redis:7-alpine
|
||
container_name: life-echo-redis-dev
|
||
ports:
|
||
- "127.0.0.1:48307:6379"
|
||
volumes:
|
||
- redis_data_dev:/data
|
||
command: redis-server --appendonly yes
|
||
restart: unless-stopped
|
||
healthcheck:
|
||
test: ["CMD", "redis-cli", "ping"]
|
||
interval: 10s
|
||
timeout: 5s
|
||
retries: 5
|
||
|
||
networks:
|
||
default:
|
||
name: life-echo-dev
|
||
|
||
volumes:
|
||
postgres_data_dev:
|
||
driver: local
|
||
redis_data_dev:
|
||
driver: local
|