Gitlab 搭建(Docker)
赋权
chcon -Rt svirt_sandbox_file_t /srv/gitlab/config &
chcon -Rt svirt_sandbox_file_t /srv/gitlab/logs &
chcon -Rt svirt_sandbox_file_t /srv/gitlab/data
运行 www.gitlab.mean 换成自己的IP
sudo docker run --detach
--hostname www.gitlab.mean
--publish 8443:443 --publish 80:80 --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:latest
127.0.0.1 www.gitlab.mean
external_url 'http://www.gitlab.mean'
sudo docker run --detach
--hostname gitlab.example.com
--env GITLAB_OMNIBUS_CONFIG="external_url 'http://my.domain.com/'; gitlab_rails['lfs_enabled'] = true;"
--publish 443:443 --publish 80:80
--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:latest