Skip to content

Instantly share code, notes, and snippets.

@m-kyle
Last active March 8, 2016 17:48
Show Gist options
  • Save m-kyle/f93c70805a9a60fa66ab to your computer and use it in GitHub Desktop.
Save m-kyle/f93c70805a9a60fa66ab to your computer and use it in GitHub Desktop.
Gitlab Docker

Running GitLab in Docker

Clone GitLab repository

  • git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 7-9-stable gitlab
  • cd gitlab

Build into Docker image

  • docker build --tag gitlab_image:7.8.3 docker/

Start GitLab Data Container

  • docker run --name gitlab_data gitlab_image /bin/true

Start GitLab

  • docker run --detach --name gitlab_app --publish 8888:80 --publish 2222:22 --volumes-from gitlab_data gitlab_image:7.8.3

Connect to GitLab Container

  • docker run -ti -e TERM=linux --rm --volumes-from gitlab_data ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment