Skip to content

Installation

Code Search can be installed in several ways depending on your needs and infrastructure.

Before installing, ensure you have:

  • Docker (version 20.10+) and Docker Compose (v2)
  • PostgreSQL 14+ or MySQL 8+ (or use the included Docker container)
  • Redis 7+ (or use the included Docker container)
  • At least 4GB RAM and 10GB disk space for small deployments

For development or building from source:

  • Go 1.22+
  • Node.js 20+

The easiest way to get started. Run all services with a single command.

  1. Download the docker-compose file:

    Terminal window
    curl -O https://raw.githubusercontent.com/techquestsdev/code-search/main/docker-compose.yml
  2. Create a configuration file:

    Terminal window
    curl -O https://raw.githubusercontent.com/techquestsdev/code-search/main/config.example.yaml
    mv config.example.yaml config.yaml
  3. Edit config.yaml with your settings (optional for basic usage)

  4. Start all services:

    Terminal window
    docker compose up -d
  5. Verify everything is running:

    Terminal window
    docker compose ps

Services will be available at:

The CLI can be installed separately for interacting with a Code Search server.

Terminal window
# Using Homebrew
brew install aanogueira/tap/code-search
# Or download binary
curl -L https://github.com/techquestsdev/code-search/releases/latest/download/code-search-darwin-arm64 -o code-search
chmod +x code-search
sudo mv code-search /usr/local/bin/

After installation, verify everything is working:

Terminal window
# Check the API is responding
curl http://localhost:8080/health
# Expected: {"status":"ok"}
# Check all services are ready
curl http://localhost:8080/ready
# Expected: {"status":"ready","checks":{"database":"ok","redis":"ok","zoekt":"ok"}}
# Test the CLI
code-search --version

Now that Code Search is installed:

  1. Quick Start - Add your first repository and start searching
  2. Configuration - Customize your installation
  3. Code Hosts - Connect to GitHub, GitLab, and more