It takes less than 5 minutes to run and install Sourcegraph using Docker:
docker run --publish 7080:7080 --publish 2633:2633 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.4.0
Once the server is ready (logo is displayed in the terminal), navigate to the hostname or IP address on port
7080. Create the admin account, then you’ll be guided through setting up Sourcegraph for code searching and navigation.
For next steps and further configuration options, visit the site administration documentation.
Cloud specific Sourcegraph installation guides for AWS, Google Cloud and Digital Ocean.
There is a known issue in Docker for Mac that causes slower than expected file system performance on volume mounts, which impacts the performance of search and cloning.
To achieve better performance, you can do any of the following:
:delegatedsuffix the data volume mount. Learn more.