I installed the GitLab CE Docker image per these instructions. I'm running HTTP on a non-standard port while I experiment with it and ran into some strange problems trying to configure a different HTTP IP & port.
Per the instructions, I mapped the port with this section of the docker run
command --publish 192.168.88.135:8083:80
(note this machine has multiple IPs so I want to map to 192.168.88.135 specifically).
Once the container is running I connect to a shell inside it and edit /etc/gitlab/gitlab.rb
as described here and here, to
external_url "http://192.168.88.135:8083"
To reconfigure GitLab I then restart the container via docker restart gitlab
. Once this is done I point my browser to http://192.168.88.135:8083, however the site is unreachable.
If I run docker inspect gitlab
, sure enough the port is mapped as expected
"80/tcp": [
{
"HostIp": "192.168.88.135",
"HostPort": "8083"
}
]
What's really strange is, if I recreate the volume and container from scratch and don't touch /etc/gitlab/gitlab.rb
, I can access GitLab via http://192.168.88.135:8083. Any idea what's going on? I'm leery to move my repositories to this setup until I understand!