Install gitlab ce in docker with the following command:
docker run -d --hostname gitlab.nico.com
-p 443:443 -p 80:80 -p 2222:22
–name gitlab
–restart unless-stopped
–volume /storage/gitlab/config:/etc/gitlab
–volume /storage/gitlab/logs:/var/log/gitlab
–volume /storage/gitlab/data:/var/opt/gitlab
gitlab/gitlab-ce:latest
I did not have any problem but when I try to access with the hostname I could not but with the ip, then configure external_url in the gitlab.rb file, but even so it did not work, then delete the container and run the image again with the following command but still I can not access with that url.
docker run -d --hostname gitlab.nico.com
–env GITLAB_OMNIBUS_CONFIG=“external_url ‘http://gitlab.nico.com:80’; gitlab_rails[‘gitlab_shell_ssh_port’]=2222;”
-p 443:443 -p 80:80 -p 2222:22
–name gitlab
–restart unless-stopped
–volume /storage/gitlab/config:/etc/gitlab
–volume /storage/gitlab/logs:/var/log/gitlab
–volume /storage/gitlab/data:/var/opt/gitlab
gitlab/gitlab-ce:latest
If someone can help me.