Files
deploy-sourcegraph-docker/docker-compose
Stephen Gutekanst 2c31a53c18 v3.14.0-1 (#91)
* lsif-server: correct file permissions on new deployments

See https://github.com/sourcegraph/sourcegraph/pull/9321

* cadvisor: add support for Amazon Linux (non-v2)

This volume mount is required for cadvisor to work correctly on Amazon Linux (non-v2)
host OSs, and likely other older Linux distros.

I have also tested on Ubuntu Xenial, and with a volume mount that does not exist,
and neither appear to cause any issues when `/cgroup` does not exist on the host OS
so this should be fine to add for all deployments.
2020-03-25 13:02:29 -07:00
..
2020-03-25 13:02:29 -07:00

Sourcegraph for docker-compose

This folder contains a Sourcegraph docker-compose deployment.

Deploying

Simply clone the repository and docker-compose up -d to deploy Sourcegraph:

git clone https://github.com/sourcegraph/deploy-sourcegraph-docker
cd deploy-sourcegraph-docker/docker-compose/
git checkout v3.14.0
docker-compose up -d

Sourcegraph will then run in the background and across server restarts.

Notes:

  • The docker-compose.yaml file currently depends on configuration files which live in the repository, as such you must have the repository cloned onto your server.
  • Data for all services will be stored as docker volumes.
  • Use docker ps to inspect the Sourcegraph containers, and docker-compose down to teardown the deployment.

Upgrading

Always refer to https://docs.sourcegraph.com/admin/updates/docker_compose prior to upgrading, as it will document any manual steps you may need to take in order to upgrade smoothly.