sameersbn / docker-gitlab

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

sameersbn/gitlab:8.5.8-1 unable to change nginx and ssh port #647

Open statby opened 8 years ago

statby commented 8 years ago

I have defind GITLAB_PORT=2080 and GITLAB_SSH_PORT=2022 ,but when i start container. I found that the nginx port and ssh port still 80 and 22. The setting is Invalid.

if [[ $GITLAB_HTTPS == true ]]; then GITLAB_PORT=${GITLAB_PORT:-443} else GITLAB_PORT=${GITLAB_PORT:-80} fi

Could I set the port by my own?

binarytemple-external commented 7 years ago

Same here, on 0.9.5 - as a consequence oauth is broken (presumably unless I run gitlab on port 80).

I'm trying to test gitlab with drone, running gitlab on port 10080.

drone-server_1  | time="2017-04-19T09:40:16Z" level=error msg="cannot authenticate user. Error exchanging token. Post http://dgitlab:10080/oauth/token: dial tcp 172.19.0.5:10080: getsockopt: connection refused"

This is because drone makes a http request to the oauth endpoint of the gitlab server (inside the docker-compose network), but within the network gitlab is listening on port 80.

Would be easier if changing GITLAB_PORT=10080 also made nginx listen on port 10080, currently it's running on 80.

solidnerd commented 7 years ago

@binarytemple-bet365 Feel free to create an PR for that ;) .

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.