GitLab: Difference between revisions
Jump to navigation
Jump to search
(Created page with " '''Linux:''' export GITLAB_HOME=/srv/gitlab '''MacOS:''' export GITLAB_HOME=$HOME/gitlab <source lang="bash"> sudo docker run --detach \ --hostname gitlab.example.com \...") |
No edit summary |
||
Line 8: | Line 8: | ||
sudo docker run --detach \ | sudo docker run --detach \ | ||
--hostname gitlab.example.com \ | --hostname gitlab.example.com \ | ||
--publish | --publish 4430:443 --publish 9050:80 --publish 4321:22 \ | ||
--name gitlab \ | --name gitlab \ | ||
--restart always \ | --restart always \ |
Revision as of 03:43, 14 June 2020
Linux: export GITLAB_HOME=/srv/gitlab
MacOS: export GITLAB_HOME=$HOME/gitlab
sudo docker run --detach \
--hostname gitlab.example.com \
--publish 4430:443 --publish 9050:80 --publish 4321:22 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/config:/etc/gitlab \
--volume $GITLAB_HOME/logs:/var/log/gitlab \
--volume $GITLAB_HOME/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest