mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-09 05:35:21 +09:00
Automatic checkpoint created by Claude Code - Branch: main - Timestamp: 2026-01-17T20:44:33Z - Changes: 2 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
# PostgreSQL with pgvector Testing Environment
|
|
# pgvector provides core vector operations compatible with RuVector
|
|
#
|
|
# Features:
|
|
# - Vector similarity search (HNSW/IVFFlat)
|
|
# - Cosine, L2, Inner Product distances
|
|
# - Efficient approximate nearest neighbor search
|
|
# - JSON metadata support
|
|
#
|
|
# Note: Using pgvector/pgvector:pg17 as ruvnet/ruvector-postgres has
|
|
# extension installation issues. RuVector functions can be added via
|
|
# custom SQL when the image is fixed.
|
|
#
|
|
# Performance: ~1ms latency, 10,000+ QPS with HNSW
|
|
|
|
services:
|
|
postgres:
|
|
image: pgvector/pgvector:pg17
|
|
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: 5
|
|
# Optimize for vector operations
|
|
command: >
|
|
postgres
|
|
-c shared_preload_libraries='vector'
|
|
-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:
|