docker 部署成功访问不了 curl访问报:Connection reset by peer,如何解决?

状态都正常,日志也没有报错
root@831e08fe2fa4:/# gitlab-ctl status
run: alertmanager: (pid 384) 4024s; run: log: (pid 379) 4024s
run: gitaly: (pid 302) 4025s; run: log: (pid 301) 4025s
run: gitlab-exporter: (pid 372) 4024s; run: log: (pid 371) 4024s
run: gitlab-kas: (pid 312) 4025s; run: log: (pid 308) 4025s
run: gitlab-workhorse: (pid 310) 4025s; run: log: (pid 306) 4025s
run: logrotate: (pid 2123) 425s; run: log: (pid 303) 4025s
run: nginx: (pid 378) 4024s; run: log: (pid 375) 4024s
run: postgres-exporter: (pid 377) 4024s; run: log: (pid 376) 4024s
run: postgresql: (pid 300) 4025s; run: log: (pid 299) 4025s
run: prometheus: (pid 374) 4024s; run: log: (pid 373) 4024s
run: puma: (pid 311) 4025s; run: log: (pid 307) 4025s
run: redis: (pid 309) 4025s; run: log: (pid 305) 4025s
run: redis-exporter: (pid 370) 4024s; run: log: (pid 369) 4024s
run: sidekiq: (pid 297) 4025s; run: log: (pid 296) 4025s
run: sshd: (pid 31) 4037s; run: log: (pid 30) 4037s

[dch@CentOSCodeServer config]$ curl http://localhost:80
curl: (56) Recv failure: Connection reset by peer

进入docker容器执行gitlab-ctl reconfigure了吗

这个需要进入到容器中看下rails的exception.log和production.log(/var/log/gitlab/gitlab-rails)

没有执行这个,执行过
docker exec -it gitlab update-permissions
docker exec -it gitlab chmod +t /tmp

进入docker容器执行gitlab-ctl reconfigure执行看看

执行过了,也不行,现在唯一看到的错误有这个,不知道如何引起的
==> /var/log/gitlab/gitlab-workhorse/current <==
{“error”:“keywatcher: pubsub receive: EOF”,“level”:“error”,“msg”:"",“time”:“2023-08-08T07:54:22Z”}
{“address”:"/var/opt/gitlab/redis/redis.socket",“level”:“info”,“msg”:“redis: dialing”,“network”:“unix”,“time”:“2023-08-08T07:54:22Z”}

看下目录下/var/log/gitlab/gitlab-rails/production.log 日志

production.log的内容
Started GET “/help” for 127.0.0.1 at 2023-08-08 07:03:16 +0000
Processing by HelpController#index as /
Rendered layout layouts/help.html.haml (Duration: 71.1ms | Allocations: 59508)
Completed 200 OK in 77ms (Views: 69.1ms | ActiveRecord: 2.5ms | Elasticsearch: 0.0ms | Allocations: 61821)
Started GET “/-/metrics” for 127.0.0.1 at 2023-08-08 07:03:20 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 47ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 930)
Started GET “/-/metrics” for 127.0.0.1 at 2023-08-08 07:03:35 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 48ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 930)
Started GET “/-/metrics” for 127.0.0.1 at 2023-08-08 07:03:50 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 48ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 930)
Started GET “/-/metrics” for 127.0.0.1 at 2023-08-08 07:04:05 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 48ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 930)
Started GET “/help” for 127.0.0.1 at 2023-08-08 07:04:16 +0000
Processing by HelpController#index as /
Rendered layout layouts/help.html.haml (Duration: 65.5ms | Allocations: 59133)
Completed 200 OK in 71ms (Views: 64.1ms | ActiveRecord: 2.0ms | Elasticsearch: 0.0ms | Allocations: 61444)
Started GET “/-/metrics” for 127.0.0.1 at 2023-08-08 07:04:20 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 49ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocation
exception.log没有

好了好了,是端口问题,gitlab映射的端口80不对的,要和里面 external_url的端口一致,坑到了