You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: doc/admin/deploy/docker-compose/upgrade.md
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ A [standard upgrade](../../updates/index.md#upgrade-types) occurs between a Sour
10
10
11
11
If you've [configured Docker Compose with a release branch](index.md#step-1-prepare-the-deployment-repository), please merge the upstream release tag for the next minor version into your `release` branch. In the following example, the release branch is being upgraded to v3.43.2.
12
12
13
-
```bash
13
+
```sh
14
14
# first, checkout the release branch
15
15
git checkout release
16
16
# fetch updates
@@ -34,7 +34,7 @@ For each conflict, you need to reconcile any customizations you made with the up
34
34
35
35
SSH into your instance and navigate to the appropriate folder:
36
36
37
-
```bash
37
+
```sh
38
38
# AWS
39
39
cd /home/ec2-user/deploy-sourcegraph-docker/docker-compose
40
40
# Azure, Digital Ocean, Google Cloud
@@ -43,38 +43,42 @@ cd /root/deploy-sourcegraph-docker/docker-compose
43
43
44
44
Download all the latest docker images to your local docker daemon:
45
45
46
-
```bash
47
-
docker-compose pull --include-deps
46
+
```sh
47
+
$ docker-compose pull --include-deps
48
48
```
49
49
50
50
Restart Docker Compose using the new minor version along with your customizations:
51
51
52
-
```bash
53
-
docker-compose up -d --remove-orphans
52
+
```sh
53
+
$ docker-compose up -d --remove-orphans
54
54
```
55
55
56
56
### Multi-version upgrades
57
57
58
+
If you are upgrading to **Sourcegraph 5.1 or later**, we encourage you to perform an [**automatic multi-version upgrade**](../../updates/automatic.md). The following instructions are still applicable, just the manual version of what automatic multi-version upgrade do for you now (and therefore is valuable information during a bumpy upgrade).
59
+
60
+
---
61
+
58
62
> **⚠️ Attention:** please see our [cautionary note](../../updates/index.md#best-practices) on upgrades, if you have any concerns about running a multiversion upgrade, please reach out to us at [[email protected]](emailto:[email protected]) for advisement.
59
63
60
-
To perform a multi-version upgrade on a Sourcegraph instance running on Docker compose follow the procedure below:
64
+
To perform a **manual**multi-version upgrade on a Sourcegraph instance running on Docker compose follow the procedure below:
61
65
62
66
1.**Check Upgrade Readiness**:
63
67
- Check the [upgrade notes](../../updates/docker_compose.md#docker-compose-upgrade-notes) for the version range you're passing through.
64
68
- Check the `Site Admin > Updates` page to determine [upgrade readiness](../../updates/index.md#upgrade-readiness).
65
69
66
70
2.**Disable Connections to the Database**:
67
71
- Run the following command in the directory containing your `docker-compose.yaml` file.
68
-
```
69
-
docker-compose stop && docker-compose up -d pgsql codeintel-db codeinsights-db
72
+
```sh
73
+
$ docker-compose stop && docker-compose up -d pgsql codeintel-db codeinsights-db
70
74
```
71
75
3.**Run Migrator with the `upgrade` command**:
72
76
- The following procedure describes running migrator in brief, for more detailed instructions and available command flags see our [migrator docs](../../updates/migrator/migrator-operations.md#docker-compose).
73
77
1. Set the migrator `image:` in your `docker-compose.yaml` to the **latest** release of `migrator`. **Example:**
@@ -243,7 +243,7 @@ To achieve better performance, you can do any of the following:
243
243
244
244
- For better clone performance, clone the repository on your host machine and then [add it to Sourcegraph Server](../../repo/add.md#add-repositories-already-cloned-to-disk).
245
245
- Try adding the `:delegated` suffix the data volume mount. [Learn more](https://github.com/docker/for-mac/issues/1592).
0 commit comments