Skip to content

Instantly share code, notes, and snippets.

@john20xdoe
Last active March 14, 2019 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john20xdoe/93f48056f8f3bb40147a8c9e5667a235 to your computer and use it in GitHub Desktop.
Save john20xdoe/93f48056f8f3bb40147a8c9e5667a235 to your computer and use it in GitHub Desktop.
Gitlab CE run command

ultrarangers/gitlab-ce:latest

  • Creates data volume in your user directory, in folder named 'gitlab'
  • URL: //localhost:10040
  • Container name: gitlab
sudo docker run --detach \
  --hostname gitlab.local \
  --publish 10040:80 --publish 10041:443 --publish 10042:22 \
  --name gitlab \
  --restart always \
  --volume /Users/$(whoami)/gitlab/config:/etc/gitlab:Z \
  --volume /Users/$(whoami)/gitlab/logs:/var/log/gitlab:Z \
  --volume /Users/$(whoami)/gitlab/data:/var/opt/gitlab:Z \
  ultrarangers/gitlab-ce:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment