2026-04-23 14:24:20 +08:00
|
|
|
|
# 本地仅起 PostgreSQL + MinIO;FastAPI 在宿主机跑(如 ./start.sh、uv run uvicorn)。
|
2026-04-27 17:19:34 +08:00
|
|
|
|
# 基础镜像经 DaoCloud 公开镜像(大陆可访问):docker.io → docker.m.daocloud.io
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
|
#
|
2026-04-23 14:24:20 +08:00
|
|
|
|
# docker compose -f docker-compose.dev.yml up -d
|
|
|
|
|
|
#
|
|
|
|
|
|
# 默认端口避开工区常见占用:
|
|
|
|
|
|
# Postgres: 宿主机 ${POSTGRES_PORT:-35432} -> 容器 5432
|
|
|
|
|
|
# MinIO API: 9000;控制台: 9001
|
|
|
|
|
|
|
2026-04-20 17:58:03 +08:00
|
|
|
|
services:
|
|
|
|
|
|
db:
|
2026-04-27 17:19:34 +08:00
|
|
|
|
image: docker.m.daocloud.io/library/postgres:16-alpine
|
2026-04-20 17:58:03 +08:00
|
|
|
|
environment:
|
|
|
|
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
|
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
|
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:-operation_room}
|
|
|
|
|
|
ports:
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
|
- "${POSTGRES_PORT:-35432}:5432"
|
2026-04-20 17:58:03 +08:00
|
|
|
|
volumes:
|
|
|
|
|
|
- pgdata_dev:/var/lib/postgresql/data
|
|
|
|
|
|
healthcheck:
|
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""]
|
|
|
|
|
|
interval: 3s
|
|
|
|
|
|
timeout: 5s
|
|
|
|
|
|
retries: 20
|
|
|
|
|
|
start_period: 5s
|
|
|
|
|
|
|
2026-04-23 14:24:20 +08:00
|
|
|
|
# S3 兼容:语音确认原始 WAV;与本项目 .env 中 MINIO_ACCESS_KEY / MINIO_SECRET_KEY 一致
|
|
|
|
|
|
minio:
|
2026-04-27 17:19:34 +08:00
|
|
|
|
image: docker.m.daocloud.io/minio/minio:latest
|
2026-04-23 14:24:20 +08:00
|
|
|
|
command: server /data --console-address ":9001"
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
|
environment:
|
2026-04-23 14:24:20 +08:00
|
|
|
|
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY:-minioadmin}
|
|
|
|
|
|
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY:-minioadmin}
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
|
ports:
|
2026-04-23 14:24:20 +08:00
|
|
|
|
- "${MINIO_PORT:-9000}:9000"
|
|
|
|
|
|
- "${MINIO_CONSOLE_PORT:-9001}:9001"
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
|
volumes:
|
2026-04-23 14:24:20 +08:00
|
|
|
|
- minio_data_dev:/data
|
feat: surgery pipeline API, video inference, voice confirm, and tests
- Add FastAPI routes for surgery start/end, results, pending confirmation (WAV upload), and health checks.
- Implement RTSP/Hikvision capture, consumable classification, session manager, MinIO/Baidu voice resolution, and DB persistence.
- Add documentation (client API, video backends, staging checklist) and sample camera/RTSP config.
- Add pytest suite (API contract, session manager, voice, repositories, pipeline persistence) and httpx dev dependency.
- Replace deprecated HTTP_422_UNPROCESSABLE_ENTITY with HTTP_422_UNPROCESSABLE_CONTENT.
- Fix SurgeryPipeline DB reads to use an explicit transaction with autobegin disabled.
Made-with: Cursor
2026-04-21 18:33:54 +08:00
|
|
|
|
|
2026-04-20 17:58:03 +08:00
|
|
|
|
volumes:
|
|
|
|
|
|
pgdata_dev:
|
2026-04-23 14:24:20 +08:00
|
|
|
|
minio_data_dev:
|