PostgreSQL with pgvector & Redis RAG Embedding Stack

version: '3.8' services: pgvector-db: image: pgvector/pgvector:pg16 container_name: postgres-pgvector restart: unless-stopped environment: POSTGRES_USER: ${DB_USER:-vector_user} POSTGRES_PASSWORD: ${DB_PASSWORD:-change-me} POSTGRES_DB: ${DB_NAME:-embeddings_store} ports: - "5432:5432" volumes: - pgvector_data:/var/lib/postgresql/data - ./init-scripts:/docker-entrypoint-initdb.d command: > postgres -c shared_preload_libraries=vector -c max_connections=100 -c shared_buffers=1GB -c work_mem=64MB redis-cache: image: redis:7-alpine container_name: vector-cache restart: unless-stopped ports: - "6379:6379" command: ["redis-server", "--maxmemory", "512mb", "--maxmemory-policy", "allkeys-lru"] volumes: pgvector_data:
PostgreSQL with pgvector & Redis RAG Embedding Stack
Note
Notification