From 74f80721d9e8d5efca6d75c2222519a3964fc62b Mon Sep 17 00:00:00 2001 From: Vic Date: Fri, 7 Aug 2026 13:03:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20GitLab-Server-Setup.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GitLab-Server-Setup.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 GitLab-Server-Setup.md diff --git a/GitLab-Server-Setup.md b/GitLab-Server-Setup.md new file mode 100644 index 0000000..7aeec21 --- /dev/null +++ b/GitLab-Server-Setup.md @@ -0,0 +1,19 @@ +# Foreword +Since we using local instance on virtual machine first of all we need to set all urls to localhost/ip of virtual machine +It's important because gitlab behind the hood will use `gitlab.local` url, and this address will be unreachable in case we use +port forwarding from virtual machine. + +# Setup local server +After gitlab instance installed let's get in docker container and change `external_url` setting: + +```bash +# enter container +docker exec -it gitlab bash + +# inside container +sed -i 's|external_url .*|external_url "http://10.0.2.15:85"|' /etc/gitlab/gitlab.rb +gitlab-ctl reconfigure +gitlab-ctl restart +exit +``` +***It will take some time and it won't be fast*** \ No newline at end of file