docker搭建gitlab
2019-05-05 本文已影响0人
fengshunli
sudo docker run -d
--hostname ip
-e GITLAB_OMNIBUS_CONFIG="external_url 'http://ip:9000'; gitlab_rails['gitlab_shell_ssh_port'] = 2222 "
--publish 8443:443 --publish 9000:9000 --publish 2222:22
--name gitlab
--restart always
--volume /srv/gitlab/config:/etc/gitlab
--volume /srv/gitlab/logs:/var/log/gitlab
--volume /srv/gitlab/data:/var/opt/gitlab
gitlab/gitlab-ce