sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.9k stars 2.14k forks source link

when i remote add mygitlab ssh or http url, i find url is localhost #1044

Open etjr opened 7 years ago

etjr commented 7 years ago

when i remote add mygitlab ssh or http url, i find zhe url is localhost, i try to get in the gitlab docker container, in path /etc/gitlab new gitlab.rb and set external_url ,but restart docker container,it's without effect

jostyee commented 7 years ago

have you set - GITLAB_HOST=gitlab.yourhost.com ?

etjr commented 7 years ago

docker run --name gitlab -d \ --link gitlab-postgresql:postgresql --link gitlab-redis:redisio \ --publish 10022:22 --publish 10080:80 \ --env 'GITLAB_PORT=10080' --env 'GITLAB_SSH_PORT=10022' \ --env 'GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string' \ --env 'GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alpha-numeric-string' \ --env 'GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alpha-numeric-string' \ --env 'GITLAB_HOST=yoururl' \ --volume /srv/docker/gitlab/gitlab:/home/git/data \ sameersbn/gitlab:8.15.2

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.