This document describes the exact changes needed to update a Docker Compose Sourcegraph instance.
Each section comprehensively describes the steps needed to upgrade, and any manual migration steps you must perform.
No manual migration is required.
If you have upgrade to
v3.14.0 already (not the
v3.14.0-1 version) and are experiencing restarts of lsif-server, please run the following on the host machine to correct it:
docker run --rm -it -v /var/lib/docker:/docker alpine:latest sh -c 'chown -R 100:101 /docker/volumes/docker-compose_lsif-server' docker restart lsif-server
A manual migration is required. Please follow the standard upgrade procedure to take down the current deployment, perform the manual migration, and then upgrade using the
v3.13.2 tag of deploy-sourcegraph-docker.
Please adjust the redis-store and redis-cache volume permissions by running the following on the host machine:
docker run --rm -it -v /var/lib/docker:/docker alpine:latest sh -c 'chown -R 999:1000 /docker/volumes/docker-compose_redis-store /docker/volumes/docker-compose_redis-cache'
cd docker-compose/ git fetch upstream git merge upstream $NEW_VERSION # Address any merge conflicts you may have.
Then on your server:
cd deploy-sourcegraph-docker/docker-compose/ docker-compose down git pull docker-compose up -d