Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes on upgrading docker installation #5395

Merged
merged 3 commits into from
Nov 26, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/content/doc/installation/with-docker.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,18 @@ be placed in `/data/gitea` directory. If using host volumes it's quite easy to a
files; for named volumes this is done through another container or by direct access at
`/var/lib/docker/volumes/gitea_gitea/_data`. The configuration file will be saved at
`/data/gitea/conf/app.ini` after the installation.

# Upgrading

:exclamation::exclamation: **Make sure you have volumed data to somewhere outside Docker container** :exclamation::exclamation:**

To upgrade your installation to the latest release:
```
# Pull the new version
docker pull gitea/gitea # or docker pull gitea/gitea:VERSION
# Stop and remove old container
docker-compose rm -s
# Edit `docker-compose.yml` if you have specified a version
# Start a new container
docker-compose up -d
```
ryanhalliday marked this conversation as resolved.
Show resolved Hide resolved