mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
Updates Caddy image to caddy 2.0.0-alpine sha256:83d9aa7a5f1bbcc0fc1b4720c183a5ec53dae7dc5d9fa555daf3db345010e7f9
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.21.2
docker-compose up -d
Sourcegraph will then run in the background and across server restarts.
Notes:
- The
docker-compose.yamlfile 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 psto inspect the Sourcegraph containers, anddocker-compose downto 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.