# RuVector PostgreSQL Testing Environment # Official RuVector extension from ruvnet/ruvector-postgres # # Features: # - 230+ SQL functions for vector operations # - HNSW/IVFFlat indexing with SIMD acceleration # - Flash Attention, GNN operations # - Hybrid search (dense + sparse) # - Multi-tenancy support # - Self-healing capabilities # # Performance: ~61µs latency, 16,400 QPS with HNSW services: postgres: image: ruvnet/ruvector-postgres:latest container_name: ruvector-postgres environment: POSTGRES_USER: claude POSTGRES_PASSWORD: claude-flow-test POSTGRES_DB: claude_flow ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data - ./scripts/init-db.sql:/docker-entrypoint-initdb.d/01-init.sql healthcheck: test: ["CMD-SHELL", "pg_isready -U claude -d claude_flow"] interval: 5s timeout: 5s retries: 10 command: > postgres -c work_mem=256MB -c maintenance_work_mem=512MB # Optional: pgAdmin for visual database management pgadmin: image: dpage/pgadmin4:latest container_name: ruvector-pgadmin environment: PGADMIN_DEFAULT_EMAIL: admin@claude-flow.local PGADMIN_DEFAULT_PASSWORD: admin PGADMIN_CONFIG_SERVER_MODE: 'False' ports: - "5050:80" depends_on: postgres: condition: service_healthy profiles: - gui volumes: postgres_data: