This is the directory structure you will end up with following the installation instructions.
/opt/gitlabholds application code for GitLab and its dependencies.
/var/opt/gitlabholds application data and configuration files that gitlab-ctl reconfigure writes to.
/etc/gitlabholds configuration files for GitLab. These are the only files that you should ever have to edit manually.
/var/log/gitlabcontains all log data generated by components of GitLab.
/var/opt/gitlab, the following directories exist:
.ssh- contains OpenSSH settings. Specifically the
authorized_keysfile managed by gitlab-shell.
gitlab-shell- Core add-on component of GitLab. Maintains SSH cloning and other functionality.
repositories- bare repositories for all projects organized by namespace. This is where the git repositories which are pushed/pulled are maintained for all projects. This area is critical data for projects. Keep a backup
To see a more in-depth overview see the GitLab architecture doc.