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
Copy file name to clipboardExpand all lines: docs/update.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,47 @@ If you have the `post-merge` hook set up the following is enough:
32
32
git pull
33
33
```
34
34
35
+
## Using Docker compose
36
+
37
+
There are two cases. Either you are pinned to a release tag, _e.g._ v5.1.2 or you are using a rolling update tag.
38
+
39
+
> {tip} When using docker, a version rollback is difficult to apply: it requires to bash into the container to run the required migrate commands on the new version before dropping the tag to the previous value.
40
+
41
+
#### With Rolling update tag
42
+
43
+
This procedure is for those following one of those tags:
44
+
45
+
-`latest`— the last official release
46
+
-`nightly` or `dev`— the last build from the `master` branch (peer reviewed)
47
+
-`alpha`— the last build from the `alpha` branch (no peer review)
48
+
49
+
Simply run the following.
50
+
```bash
51
+
docker compose down
52
+
docker compose pull
53
+
docker compose up -d
54
+
```
55
+
56
+
The database migrations will be applied automatically.
57
+
58
+
#### With version tag.
59
+
60
+
First edit your `docker-compose.yml` to point to the version you would like to migrate to.
61
+
62
+
```diff
63
+
- image: lycheeorg/lychee:v5.1.0
64
+
+ image: lycheeorg/lychee:v5.1.2
65
+
```
66
+
67
+
Save and run the following.
68
+
```bash
69
+
docker compose down
70
+
docker compose pull
71
+
docker compose up -d
72
+
```
73
+
74
+
The migration will be applied automatically and you should be running the requested tagged version.
75
+
35
76
## Update manually
36
77
37
78
This update will be the one you have to use if you are following the Release channel.
0 commit comments