Sourcegraph is a web-based, open-source, self-hosted code search and navigation tool for developers, used by Uber, Lyft, Yelp, and more.
It takes less than 5 minutes to install Sourcegraph using Docker. If you’ve got Docker installed, you’re ready to start the server which listens on port
7080 by default.
docker run --publish 7080:7080 --publish 2633:2633 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.2.0
Access the server on port
7080, then the below screencast will show you how to configure Sourcegraph to search public and private repositories, and enable code intelligence on Sourcegraph and GitHub.com.
Once Sourcegraph has been configured, head to the site administration documentation for next steps.
- User documentation
- Administrator documentation
- Install Sourcegraph or update Sourcegraph
- Sourcegraph extensions
Features and tutorials
- Overview: What is Sourcegraph?
- Tour: A walkthrough of Sourcegraph’s features, with real-world example use cases.
- How to run a Sourcegraph trial at your company
- Integrations with GitHub, GitLab, Bitbucket, etc.
- Chrome and Firefox browser extensions
- Query syntax reference
- GraphQL API
- Sourcegraph Enterprise
You can use Sourcegraph in 2 ways:
- Self-hosted Sourcegraph: Deploy and manage your own Sourcegraph instance.
- Sourcegraph.com: For public code only. No signup or installation required.
For self-hosted Sourcegraph instances, you run a Docker image or Kubernetes cluster on-premises or on your preferred cloud provider. There are 2 tiers: Core (free) and Enterprise. Enterprise features require a Sourcegraph subscription.