# 开发模式：挂载源码 + 热重载，代码更新后无需重新 build
# 使用: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
# 或: docker compose --profile dev up -d (需在 dev 服务加 profiles)
services:
  api:
    volumes:
      - ./server:/app/server:ro
    command: ["node", "--watch", "server/index.js"]

  crawler:
    volumes:
      - ./crawler:/app
    command: ["uvicorn", "realtime_conflict_service:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
