From f4a29ca3561e1dcffc3f637473e6a6f61e3aa87c Mon Sep 17 00:00:00 2001 From: TBS093A Date: Thu, 9 Mar 2023 17:27:30 +0100 Subject: [PATCH] add IP & DNS configuration description --- gitlab/.env.example | 2 ++ gitlab/README.md | 14 ++++++++++++++ gitlab/docker-compose.yml | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gitlab/.env.example b/gitlab/.env.example index ecd7d62..d1b728f 100644 --- a/gitlab/.env.example +++ b/gitlab/.env.example @@ -1,4 +1,6 @@ GITLAB_ROOT_PASSWORD="example" GITLAB_ROOT_EMAIL="example" +GITLAB_IP_OR_DNS="http://0.0.0.0" + GITHUB_ACCESS_TOKEN="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" \ No newline at end of file diff --git a/gitlab/README.md b/gitlab/README.md index d810f98..cb78de2 100644 --- a/gitlab/README.md +++ b/gitlab/README.md @@ -1,5 +1,19 @@ # Gitlab configuration +## Gitlab IP or DNS address + +edit .env file and define external url IP or DNS, it should solve problems with issue routing, try like that (for example): + +```bash +GITLAB_IP_OR_DNS="http://192.168.1.103" +``` + +instead: + +```bash +GITLAB_IP_OR_DNS="http://0.0.0.0" +``` + ## SSH config Add these lines into ~/.ssh/config file diff --git a/gitlab/docker-compose.yml b/gitlab/docker-compose.yml index ed2428c..d4d91a4 100644 --- a/gitlab/docker-compose.yml +++ b/gitlab/docker-compose.yml @@ -17,7 +17,7 @@ services: # network setup letsencrypt['enable'] = false - external_url 'http://0.0.0.0' + external_url '${GITLAB_IP_OR_DNS}' # gitlab_rails['gitlab_https'] = true # gitlab_rails['gitlab_port'] = 443 ports: