summaryrefslogtreecommitdiff
path: root/docker/README.md
diff options
context:
space:
mode:
authorSytse Sijbrandij <sytses@gmail.com>2014-12-03 12:41:47 +0100
committerSytse Sijbrandij <sytses@gmail.com>2014-12-03 12:41:47 +0100
commit9e4d39c0513fc91fc2c844d482e82a8e9df8927d (patch)
tree0bb0120a4f45b2cf6347377fd0b94664501f910b /docker/README.md
parented7760b1d7b58d07793437db78f960ed7c4ae182 (diff)
downloadgitlab-ce-9e4d39c0513fc91fc2c844d482e82a8e9df8927d.tar.gz
Move commands to the readme, rename gitlab to gitlab_app, add PostgreSQL tweaks to gitlab.rb.
Diffstat (limited to 'docker/README.md')
-rw-r--r--docker/README.md30
1 files changed, 23 insertions, 7 deletions
diff --git a/docker/README.md b/docker/README.md
index b528b22336f..a2a194bd42c 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -11,21 +11,37 @@ GitLab offers git repository management, code reviews, issue tracking, activity
How to use this image
======================
-I recommend creating a data volume container first, this will simplify migrations and backups:
+At this moment GitLab doesn't have official Docker images.
+Build your own based on the Omnibus packages with the following command (it assumes you're in the GitLab repo root directory):
- docker run --name gitlab_data genezys/gitlab:7.5.1 /bin/true
+```bash
+sudo docker build --tag gitlab_image docker/
+```
-This empty container will exist to persist as volumes the 3 directories used by GitLab, so remember not to delete it:
+We assume using a data volume container, this will simplify migrations and backups.
+This empty container will exist to persist as volumes the 3 directories used by GitLab, so remember not to delete it.
+
+The directories on data container are:
- `/var/opt/gitlab` for application data
- `/var/log/gitlab` for logs
- `/etc/gitlab` for configuration
-Then run GitLab:
+Create the data container with:
+
+```bash
+sudo docker run --name gitlab_data gitlab_image /bin/true
+```
+
+After creating this run GitLab:
+
+```bash
+sudo docker run --detach --name gitlab_app --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data gitlab_image
+```
- docker run --detach --name gitlab --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data genezys/gitlab:7.5.1
+It might take a while before the docker container is responding to queries.
-You can then go to `http://localhost:8080/` (or most likely `http://192.168.59.103:8080/` if you use boot2docker). Next time, you can just use `docker start gitlab` and `docker stop gitlab`.
+You can then go to `http://localhost:8080/` (or `http://192.168.59.103:8080/` if you use boot2docker). Next time, you can just use `sudo docker start gitlab_app` and `sudo docker stop gitlab_app`.
How to configure GitLab
@@ -39,7 +55,7 @@ To access GitLab configuration, you can start a new container using the shared d
**Note** that GitLab will reconfigure itself **at each container start.** You will need to restart the container to reconfigure your GitLab.
-You can find all available options in [GitLab documentation](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#configuration).
+You can find all available options in [Omnibus GitLab documentation](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#configuration).
Troubleshooting
=========================