Skip to content

Instantly share code, notes, and snippets.

@joe11051105
Created May 18, 2017 07:05
Show Gist options
  • Save joe11051105/d75cbdb9be8e6afadd9c18fd9384ae60 to your computer and use it in GitHub Desktop.
Save joe11051105/d75cbdb9be8e6afadd9c18fd9384ae60 to your computer and use it in GitHub Desktop.

docker run --detach
--hostname your_host_name
--env GITLAB_OMNIBUS_CONFIG="gitlab_rails['gitlab_shell_ssh_portv'] = '23';"
--publish 443:443
--publish 80:80
--publish 23:22
--name gitlab
--restart always
--volume pwd/gitlab/config:/etc/gitlab
--volume pwd/gitlab/logs:/var/log/gitlab
--volume pwd/gitlab/data:/var/opt/gitlab
gitlab/gitlab-ce:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment