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: