# A 股 Deep Research 平台 docker-compose
# 当前仅声明 Qdrant 占位（Milestone 6 启用）；其余服务在对应 Milestone 加入

services:
  # ---- 向量数据库（Milestone 6 启用）----
  qdrant:
    image: qdrant/qdrant:v1.13.5
    container_name: a_share_qdrant
    restart: unless-stopped
    profiles: ["m6", "full"]   # 默认不启动；docker compose --profile m6 up -d 启用
    ports:
      - "6333:6333"   # REST
      - "6334:6334"   # gRPC
    volumes:
      - ./data/qdrant_storage:/qdrant/storage
    environment:
      - QDRANT__SERVICE__GRPC_PORT=6334
    healthcheck:
      test: ["CMD-SHELL", "bash -c '</dev/tcp/localhost/6333'"]
      interval: 30s
      timeout: 5s
      retries: 3

  # ---- 应用主服务（Milestone 7+ 启用）----
  # app:
  #   build: .
  #   container_name: a_share_app
  #   profiles: ["full"]
  #   env_file: .env
  #   depends_on:
  #     qdrant:
  #       condition: service_healthy
  #   volumes:
  #     - ./logs:/app/logs
  #     - ./data:/app/data
  #   command: ["uv", "run", "python", "main.py"]

networks:
  default:
    name: a_share_research
