Run compose api as HOST_UID/GID with cache under /tmp, poll slice files for ready_event when ffmpeg stderr is silent, invoke batch via venv python, exclude logs from build context, and document Docker cache/VLC troubleshooting. Co-authored-by: Cursor <cursoragent@cursor.com>
50 lines
1.8 KiB
Bash
Executable File
50 lines
1.8 KiB
Bash
Executable File
# 本地/联调。部署项以外默认值见 `app/baked/algorithm.py`、`app/baked/pipeline.py`。
|
||
# 启动前执行 `alembic upgrade head`(`./start.sh` 已跑)。
|
||
|
||
# --- PostgreSQL(宿主机映射端口,避免与本地 35432 冲突)---
|
||
POSTGRES_USER=postgres
|
||
POSTGRES_PASSWORD=postgres
|
||
POSTGRES_DB=operation_room
|
||
POSTGRES_HOST=localhost
|
||
POSTGRES_PORT=45432
|
||
DOCKER_POSTGRES_PUBLISH_PORT=45432
|
||
# DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:45432/operation_room
|
||
|
||
# --- API 容器用户(与宿主机一致,logs/rtsp_segments 切片可在宿主机直接用 VLC 打开)---
|
||
HOST_UID=1000
|
||
HOST_GID=1000
|
||
DOCKER_GID=999
|
||
|
||
# --- 手术室站点配置(严格 JSON:仅含 video_rtsp_urls + voice_or_room_bindings)---
|
||
# 示例:app/resources/or_site_config.sample.json。一键联调会向该文件合并更新 video_rtsp_urls,须可写。
|
||
OR_SITE_CONFIG_JSON_FILE=app/resources/or_site_config.sample.json
|
||
|
||
# --- RTSP 预热(进程启动后对站点 JSON 全部机位 keep-alive,缩短开录冷启动)---
|
||
RTSP_PREWARM_ENABLED=true
|
||
RTSP_PREWARM_RECONNECT_MAX_SEC=30
|
||
|
||
# --- 百度 ---
|
||
BAIDU_APP_ID=31461922
|
||
BAIDU_API_KEY=8NjVDPUl64fg7InpxOka69TE
|
||
BAIDU_SECRET_KEY=DzIO6BTdABb0jFu80jWGDfmpxFfwlvA0
|
||
BAIDU_ASR_DEV_PID=1537
|
||
# 人脸脚本 `scripts/baidu_face_1n_search.py`
|
||
BAIDU_FACE_GROUP_ID_LIST=2_1
|
||
|
||
# --- MinIO(宿主机映射端口,避免与本地 9000/9001 冲突)---
|
||
MINIO_PORT=19000
|
||
MINIO_CONSOLE_PORT=19001
|
||
MINIO_ENDPOINT=127.0.0.1:19000
|
||
MINIO_ACCESS_KEY=minioadmin
|
||
MINIO_SECRET_KEY=minioadmin
|
||
MINIO_BUCKET=operation-room-voice
|
||
MINIO_SECURE=false
|
||
|
||
# --- Demo 客户端联调 ---
|
||
DEMO_CORS_ENABLED=true
|
||
DEMO_CORS_ORIGINS=*
|
||
DEMO_ORCHESTRATOR_ENABLED=true
|
||
DEMO_ORCHESTRATOR_RTSP_PORT=18554
|
||
DEMO_ORCHESTRATOR_RTSP_JSON_HOST=127.0.0.1
|
||
|
||
DEMO_HLS_PREVIEW_UPSTREAM=http://mediamtx-hls:8888 |