Skip to main content

Deployment Guide

Deploy InfoLens on your own infrastructure with Docker Compose.

Prerequisites
  • Docker Engine 24+ and Docker Compose v2
  • At least 4GB RAM (8GB recommended)
  • Gemini API key (or other LLM provider)
  • Ports 24000-24003 available
1

Clone and Configure

bash
git clone https://github.com/gdlabs/infolens-rag.git
cd infolens-rag

# Configure environment
cp .env.example .env
# Edit .env with your Gemini API key and database credentials
2

Start the Stack

bash
cd docker

# Start all services (backend + frontend + postgres + clustering)
docker compose --profile postgres -f compose.yaml up -d

# Verify health
curl http://localhost:24000/v1/health
# → {"results":{"message":"ok"}}
3

Access the Platform

Frontend

http://localhost:24001

API

http://localhost:24000/v1
4

First Sign-In

Email: [email protected]

$ docker logs docker-infolens-rag-1 2>&1 | grep OTP-CODE

Sign-in is passwordless: enter this email on the login page to request a 6-digit code. Until SMTP is configured (Admin → Platform), the console email provider prints the code to the backend logs. The address is set via default_admin_email.

Service Architecture

24000

Backend API

FastAPI + PostgreSQL

24001

Frontend

Next.js 16 + React 19

24002

Graph Clustering

Graspologic + FastAPI

24003

PostgreSQL

pgvector/pgvector:pg16