Skip to content

Latest commit

 

History

History
113 lines (82 loc) · 2.68 KB

GitLab.md

File metadata and controls

113 lines (82 loc) · 2.68 KB

Hotkeys:

Other stuff:

<p>
<details>
<summary>Click this to collapse/fold.</summary>

These details <em>remain</em> <strong>hidden</strong> until expanded.

<pre><code>PASTE LOGS HERE</code></pre>

</details>
</p>

Markdown syntax:

PlantUML mind map:

Utils:

reStructuredText:

GitLab locally

Official:

3rd party manual:

yum install docker
systemctl enable docker
systemctl start docker
yum clean packages # to free space in /var
sudo docker pull gitlab/gitlab-ce:latest

# Run:
  docker run --detach --hostname YOUR_HOSTNAME \
    --publish 443:443 --publish 80:80 --publish 12322: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  \
    --env GITLAB_OMNIBUS_CONFIG="external_url 'http://YOUR_HOSTNAME';" \
    gitlab/gitlab-ce:latest

  • Or -- if using podman:

    podman generate systemd --new --name gitlab > /etc/systemd/system/gitlab.service`
    systemctl list-unit-files | grep gitlab
    systemctl enable gitlab
    
  • Monitoring status/logs:

    • sudo docker logs -f gitlab

Gollum