Stephen Gutekanst ae00d7d660 properly connect frontend services to indexed-search (zoekt) service
Prior to this change the frontend failed to find the indexed-search service
with errors such as:

> Dial tcp: lookup indexed-search on 127.0.0.11:53: no such host

This was due to the fact that `ZOEKT_HOST` defaults to `indexed-search:80`, which
is correct for Kubernetes cluster deployments but not for pure-Docker ones.

Setting the proper value here resolves this.
2019-01-07 20:20:11 -07:00
2018-12-14 19:16:59 -08:00
2018-12-14 13:24:21 -08:00
2018-12-14 19:16:59 -08:00

Pure-Docker Sourcegraph cluster deployment reference

sourcegraph: search

There are two recommended ways to deploy Sourcegraph:

But what if your organization wants a multi-machine deployment without using Kubernetes? What if you use a different container management platform, for example? This project aims to solve that, by providing a pure-Docker deployment option.

The goal is that anyone using a container management platform other than Kubernetes (Netflix's Titus, Apache's Mesos, etc.) would be able to use this repository as a reference for how to deploy Sourcegraph.

⚠️ Alpha release

This project is using an alpha release of Sourcegraph v3.0.0. It is not yet heavily tested, and there may be major bugs or regressions. Code intelligence does not yet work with this deployment method.

When Sourcegraph v3.0.0 preview is released, this repository will be updated and code intelligence will work.

Deploying

First clone the repository, then:

./deploy.sh

Visit http://localhost:3080 to visit the running Sourcegraph instance!

Tearing down the deployment

./teardown.sh

System topology

To understand the system topology:

  1. Look at deploy.sh to get an overview of services.
  2. Every service (deploy-*.sh) has documentation inline indicating:
    • What the service does / provides.
    • What ports the service exposes.
    • What other services it talks to (see environment variables).

Service system requirements

Every service (deploy-*.sh) documents inline what the system requirements are (CPU/Memory/Disk allocation). For example, the frontend service.

Scaling / replicas

To scale the cluster deployment, you will need to:

  1. Deploy more instances of gitserver, searcher, and symbols services as desired.
  2. Configure the frontend and frontend-internal to communicate with the new instances.
  3. You're done! You do not need to configure or restart any other services.

Configuring HTTPS

See documentation inline here.

Questions

Open an issue or contact us (support@sourcegraph.com), we are happy to answer any questions!

S
Description
Mirror of github.com/RustyRaptor/deploy-sourcegraph-docker — Sourcegraph with Docker Compose deployment reference
Readme
1.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
Shell 67.8%
Go 32.1%