Home > OS >  Ubuntu using docker - compose start gitlab container don't have access to the home page
Ubuntu using docker - compose start gitlab container don't have access to the home page

Time:09-17

Installed version
Docker: 19.03.7
Docker - compose: 1.23.0 -rc3
Gitlabcezh/gitlab - ce - useful: latest

Use of dockerfile. Yml start the container, the content is as follows:
Version: '3'
Services:
Gitlab:
Image: 'gitlabcezh/gitlab - ce - useful'
Restart: always
The hostname: '192.168.157.134'
Container_name: 'gitlab'
Environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG: |
External_url 'http://192.168.157.134'
Gitlab_rails [' time_zone]='Asia/Shanghai'
Gitlab_rails [' gitlab_shell_ssh_port]=2222
Unicorn [' port ']=8888
Nginx [' listen_port]=80
Ports:
- '80-80
- '8443-443
- '2222:22'
Volumes,
-/usr/local/docker/gitlab/config:/etc/gitlab
-/usr/local/docker/gitlab/data:/var/opt/gitlab
-/usr/local/docker/gitlab/logs:/var/log/gitlab

Start after the success are as follows:

Here are the red chef client failed doesn't understand what you mean, to do with this??
And then check whether the port 80 open, as a result, yes

But in hosting the browser can't access, prompt connection refused, trouble bosses to help analysis the reason

CodePudding user response:

Found in the container/etc/gitlab/gitlab rb file, plus the equal sign between external_url and IP "=",
  • Related