Sourcegraph only support git repository so it's not very useful for enterprise with mercurial, svn or other distributed version control systems.
There is another open source application for code search opengrok [1] (it's completely open source unlike sourcegraph and supports multiple version controls beside git).
Take a look. It's easy to install and operate on bare metal, cloud and containers, instead of convoluted sourcegraph way of kubernetes or docker.