Skip to content

Commit d9b0b7f

Browse files
ryanhallidaytechknowlogick
authored andcommitted
Notes on upgrading docker installation (#5395)
* Notes on upgrading docker installation Basis from [gogs/gogs](https://github.com/gogs/gogs/blob/master/docker/README.md) * Feedback from @sapk to use docker-compose only
1 parent 499d132 commit d9b0b7f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/content/doc/installation/with-docker.en-us.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,16 @@ be placed in `/data/gitea` directory. If using host volumes it's quite easy to a
267267
files; for named volumes this is done through another container or by direct access at
268268
`/var/lib/docker/volumes/gitea_gitea/_data`. The configuration file will be saved at
269269
`/data/gitea/conf/app.ini` after the installation.
270+
271+
# Upgrading
272+
273+
:exclamation::exclamation: **Make sure you have volumed data to somewhere outside Docker container** :exclamation::exclamation:**
274+
275+
To upgrade your installation to the latest release:
276+
```
277+
# Edit `docker-compose.yml` to update the version, if you have one specified
278+
# Pull new images
279+
docker-compose pull
280+
# Start a new container, automatically removes old one
281+
docker-compose up -d
282+
```

0 commit comments

Comments
 (0)