diff --git a/README.md b/README.md index f3d97dd8..ce09ace0 100644 --- a/README.md +++ b/README.md @@ -119,40 +119,6 @@ docker run -d \ -v /opt/gitlab/.ssh:/home/git/.ssh sameersbn/gitlab ``` -## Upgrading - -If you upgrading from previous version, please make sure you run the container with **migrate** command. - -**Step 1: Stop the currently running image** - -```bash -docker stop -``` - -**Step 2: Backup the database in case something goes wrong.** - -```bash -mysqldump -h -ugitlab -p --add-drop-table gitlabhq_production > gitlab.sql -``` - -**Step 3: Update the docker image.** - -```bash -docker pull sameersbn/gitlab -``` - -**Step 4: Migrate the database.** - -```bash -docker run -i -t [OPTIONS] sameersbn/gitlab migrate -``` - -**Step 5: Start the image** - -```bash -docker run -i -d [OPTIONS] sameersbn/gitlab -``` - ### Other options Below is the complete list of parameters that can be set using environment variables. @@ -232,6 +198,40 @@ docker run -d -h git.local.host \ sameersbn/gitlab ``` +## Upgrading + +If you upgrading from previous version, please make sure you run the container with **migrate** command. + +**Step 1: Stop the currently running image** + +```bash +docker stop +``` + +**Step 2: Backup the database in case something goes wrong.** + +```bash +mysqldump -h -ugitlab -p --add-drop-table gitlabhq_production > gitlab.sql +``` + +**Step 3: Update the docker image.** + +```bash +docker pull sameersbn/gitlab +``` + +**Step 4: Migrate the database.** + +```bash +docker run -i -t [OPTIONS] sameersbn/gitlab migrate +``` + +**Step 5: Start the image** + +```bash +docker run -i -d [OPTIONS] sameersbn/gitlab +``` + ## References * https://github.com/gitlabhq/gitlabhq * https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md