Skip to content

Commit fae5c96

Browse files
fix: update upgrade docs for PG16 docker-compose
They should be "copy-pasteable" now. I put it in quotes because they have to paste it very specifically, but I think they are sufficiently idiot proof
1 parent a260768 commit fae5c96

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/admin/deploy/docker-compose/upgrade.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,26 @@ To perform a **manual** multi-version upgrade on a Sourcegraph instance running
7373

7474
2. **Disable Connections to the Database**:
7575
> **⚠️ Attention:** If your database is still running Postgres 12, upgrade your database to Postgres 16 in this step. For our built-in databases offerings, this can be accomplished by starting the databases using our `postgresql-16` images packaged in the deploy repos starting in version `5.10.0`. Learn more [here](/admin/postgres).
76+
- **NOTE**: Names of the images have changed with the release of Sourcegraph 5.10.0. If you are using a version prior to 5.10.0, please ensure you use the following image names going forward:
77+
- `postgres-12` -> `postgresql-16`
78+
- `codeintel-db` -> `postgresql-16`
79+
- `codeinsights-db` -> `postgresql-16-codeinsights`
80+
81+
- Change the `image:` in your `docker-compose.yaml` to the release of `pgsql`, `codeinsights-db`, and `codeintel-db`. **Example:**
82+
```yaml
83+
pgsql:
84+
container_name: pgsql
85+
image: 'index.docker.io/sourcegraph/postgresql-16:6.0.0'
86+
...
87+
codeintel-db:
88+
container_name: codeintel-db
89+
image: 'index.docker.io/sourcegraph/postgresql-16:6.0.0'
90+
...
91+
codeinsights-db:
92+
container_name: codeintel-db
93+
image: 'index.docker.io/sourcegraph/postgresql-16-codeinsights:6.0.0'
94+
```
95+
7696
- Run the following command in the directory containing your `docker-compose.yaml` file.
7797
```sh
7898
$ docker-compose stop && docker-compose up -d pgsql codeintel-db codeinsights-db

0 commit comments

Comments
 (0)