Deployment Overview
Sourcegraph offers multiple deployment options to suit different needs. The appropriate option for your organization depends on your goals and requirements, as well as the technical expertise and resources available. The following sections overview the available options and their associated investments and technical demands.
Deployment types
Carefully consider your organization's needs and technical expertise when selecting a Sourcegraph deployment method. The method you choose cannot be changed for a running instance, so make an informed decision. The available methods have different capabilities, and the following sections provide recommendations to help you choose.
Sourcegraph Cloud
Enterprises looking for a managed Sourcegraph Cloud solution explore a cloud instance hosted and maintained by Sourcegraph.
Machine Images
For Enterprises looking for a self-hosted solution on the Cloud infrastructure of their choice.
An option to run Sourcegraph on your own infrastructure using pre-configured machine images.
Customized machine images allow you to spin up a preconfigured and customized Sourcegraph instance with just a few clicks, all in less than 10 minutes. Currently available in the following hosts:
See Sourcegraph Machine Images for more information.
Install-script
Sourcegraph provides an install script that can deploy Sourcegraph instances to Linux-based virtual machines. This method is recommended for:
- On-premises deployments (your own infrastructure)
- Deployments to unsupported cloud providers (non-officially supported)
See Sourcegraph install script for more information.
Kubernetes
For large Enterprises that require a multi-node, self-hosted solution.
- Helm utilizes pre-packaged charts for templating Sourcegraph deployments
- Kustomize utilizes built-in features of kubectl for configuring Sourcegraph deployments
Local machines
For setting up non-production environments on local machines.
- Docker Compose - Install Sourcegraph on Docker Compose
- Docker Single Container - Install Sourcegraph using a single Docker container
ARM / ARM64 support
Running Sourcegraph on ARM / ARM64 images is not supported for production deployments.