GitLab: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{|
| valign="top" |
  '''Linux:'''
  '''Linux:'''
  export GITLAB_HOME=/srv/gitlab
  export GITLAB_HOME=/srv/gitlab


| valign="top" |
  '''MacOS:'''
  '''MacOS:'''
  export GITLAB_HOME=$HOME/gitlab
  export GITLAB_HOME=$HOME/gitlab
|}
==Volumes Location==
{| class="wikitable sortable"
|-
! Local location !! Container location  !! Usage
|-
| <code>$GITLAB_HOME/data</code> || <code>/var/opt/gitlab</code> || For storing application data
|-
| <code>$GITLAB_HOME/logs</code> || <code>/var/log/gitlab</code> || For storing logs
|-
| <code>$GITLAB_HOME/config</code> || <code>/etc/gitlab</code> || For storing the GitLab configuration files
|}


<source lang="bash">
<source lang="bash">

Revision as of 04:01, 14 June 2020

Linux:
export GITLAB_HOME=/srv/gitlab
MacOS:
export GITLAB_HOME=$HOME/gitlab

Volumes Location

Local location Container location Usage
$GITLAB_HOME/data /var/opt/gitlab For storing application data
$GITLAB_HOME/logs /var/log/gitlab For storing logs
$GITLAB_HOME/config /etc/gitlab For storing the GitLab configuration files
sudo docker run --detach \
--hostname cdn.chorke.org \
--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
ssh -L 9050:localhost:9050 [email protected]
http://localhost:9050/

References