GitLab: Difference between revisions
Jump to navigation
Jump to search
Line 60: | Line 60: | ||
==References== | ==References== | ||
{| | |||
| valign="top" | | |||
* [https://websiteforstudents.com/setup-apache2-reverse-proxy-nginx-ubuntu-17-04-17-10/ Setup Apache2 as Reverse Proxy for Nginx] | * [https://websiteforstudents.com/setup-apache2-reverse-proxy-nginx-ubuntu-17-04-17-10/ Setup Apache2 as Reverse Proxy for Nginx] | ||
* [https://docs.gitlab.com/ee/raketasks/backup_restore.html Backing up and restoring GitLab] | * [https://docs.gitlab.com/ee/raketasks/backup_restore.html Backing up and restoring GitLab] | ||
Line 70: | Line 72: | ||
* [https://docs.gitlab.com/omnibus/settings/nginx.html#enable-https Enable HTTPS] | * [https://docs.gitlab.com/omnibus/settings/nginx.html#enable-https Enable HTTPS] | ||
* [https://docs.gitlab.com/omnibus/settings/smtp.html SMTP settings] | * [https://docs.gitlab.com/omnibus/settings/smtp.html SMTP settings] | ||
| valign="top" | | |||
* [https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/master/doc/settings/configuration.md GitLab Configuration Settings] | |||
* [https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/master/doc/settings/database.md GitLab Database Settings] | |||
* [https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/master/doc/settings/smtp.md GitLab SMTP Settings] | |||
|} |
Revision as of 07:21, 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 |
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
External URL
docker run --detach \
--hostname cdn.chorke.org \
--env GITLAB_OMNIBUS_CONFIG="external_url 'http://my.domain.com/'; gitlab_rails['lfs_enabled'] = true;" \
--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
Good To Know
SSH Local Forwarding: ssh -L 9050:localhost:9050 [email protected] http://localhost:9050/ user: root pass: 5iveL!fe
docker logs gitlab docker restart gitlab docker exec -it gitlab /bin/bash docker exec gitlab update-permissions