Skip to content

Instantly share code, notes, and snippets.

@Demonium
Forked from kingbin/GitLab-CE on Windows 10
Last active May 21, 2020 23:29
Show Gist options
  • Save Demonium/04181c0051e6b61ea20a4901a769f65d to your computer and use it in GitHub Desktop.
Save Demonium/04181c0051e6b61ea20a4901a769f65d to your computer and use it in GitHub Desktop.
Using Docker toolbox to create a persistent Gitlab-CE install in Windows 10
$ docker create --name gitlab-data --volume /d/docker/gitlab:/etc/gitlab gitlab/gitlab-ce:latest
# Make sure Bridging is set on the VM in VirtualBox
$ docker run --publish 8080:80 --publish 2222:22 --publish 4443:443 --name gitlab --restart always --volumes-from gitlab-data gitlab/gitlab-ce:latest
Using docker 1.13.1
/******************************************************************************************************************/
Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:
docker exec -it gitlab vim /etc/gitlab/gitlab.rb
docker restart gitlab
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
If this container fails to start due to permission problems try to fix it by executing:
docker exec -it gitlab update-permissions
docker restart gitlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment