# Docker Compose for miyabi-knowledge Integration Tests
#
# Usage:
#   docker-compose -f docker-compose.test.yml up -d
#   cargo test --package miyabi-knowledge --test integration_tests
#   docker-compose -f docker-compose.test.yml down
#
# This file provides a Qdrant vector database instance for integration testing.

version: '3.8'

services:
  qdrant:
    image: qdrant/qdrant:v1.15.0
    container_name: miyabi-qdrant-test
    ports:
      - "6333:6333"  # REST API
      - "6334:6334"  # gRPC API
    environment:
      - QDRANT__SERVICE__GRPC_PORT=6334
    volumes:
      - qdrant_test_data:/qdrant/storage
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:6333/"]
      interval: 5s
      timeout: 3s
      retries: 5
      start_period: 10s
    restart: unless-stopped

volumes:
  qdrant_test_data:
    driver: local
