Get CodeIntel running locally with Docker in 5 minutes.
✅ Docker Desktop installed and running
✅ Git installed
✅ Terminal/Command Line access
git clone https://github.com/OpenCodeIntel/opencodeintel.git
cd opencodeintel# Copy environment template
cp .env.example .env
# Edit .env with your API keys
nano .env # or use your preferred editorRequired variables in .env:
OPENAI_API_KEY=sk-...
PINECONE_API_KEY=pcsk_...
PINECONE_INDEX_NAME=codeintel
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=eyJ...
API_KEY=your-secret-key-here# Build and start all services
docker compose up -d
# Watch logs
docker compose logs -fServices will start on:
- 🎨 Frontend: http://localhost:3000
- 🚀 Backend API: http://localhost:8000
- 📖 API Docs: http://localhost:8000/docs
- 🗄️ Redis: localhost:6379
# Run verification script
chmod +x scripts/verify-setup.sh
./scripts/verify-setup.sh
# Or test manually:
curl http://localhost:8000/healthExpected response:
{
"status": "healthy",
"timestamp": "2024-11-22T22:45:00"
}- Open Frontend: http://localhost:3000
- Add a Repository:
- Enter GitHub URL
- Watch it clone and index
- Search Code:
- Use semantic search to find implementations
- Get instant results from vector search
# View logs
docker compose logs -f backend
docker compose logs -f frontend
# Restart a service
docker compose restart backend
# Stop everything
docker compose down
# Stop and remove all data
docker compose down -v
# Rebuild after code changes
docker compose up -d --build backendIssue: Docker daemon not running
Fix: Open Docker Desktop and wait for it to start
Issue: Port 8000 already in use
Fix:
# Find what's using it
lsof -i :8000
# Kill it or change port in docker-compose.ymlIssue: Environment variables not found
Fix: Make sure .env exists in project root (not just backend/)
Full troubleshooting guide: See docker-troubleshooting.md
For hot reload during development:
# Use dev compose file
docker compose -f docker-compose.dev.yml up
# Backend will auto-reload on file changes- Read full deployment guide: deployment.md
- 🚀 Deploy to Railway:
./scripts/deploy-railway.sh - 🌐 Deploy to Vercel:
./scripts/deploy-vercel.sh - 🧪 Run tests: See
backend/README.md
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Frontend │─────▶│ Backend │─────▶│ Redis │
│ (Vite/React)│ │ (FastAPI) │ │ (Cache) │
│ Port 3000 │ │ Port 8000 │ │ Port 6379 │
└─────────────┘ └─────────────┘ └─────────────┘
│
▼
┌─────────────┐
│ Supabase │
│ (Postgres) │
└─────────────┘
│
▼
┌─────────────┐
│ Pinecone │
│ (Vectors) │
└─────────────┘
Minimum:
- 4GB RAM
- 2 CPU cores
- 10GB disk space
Recommended:
- 8GB RAM
- 4 CPU cores
- 20GB disk space
Set in Docker Desktop → Settings → Resources
Once local dev works, deploy to production:
-
Backend → Railway:
./scripts/deploy-railway.sh
-
Frontend → Vercel:
./scripts/deploy-vercel.sh
Full deployment guide: deployment.md
Need help?
- Check docker-troubleshooting.md
- 🐛 Open an issue: https://github.com/OpenCodeIntel/opencodeintel/issues
- 📝 See full docs:
README.md