部署之后无法使用

按照部署社区版部署到centos stream 10之后
sudo docker ps --format “table {{.ID}}\t{{.Names}}\t{{.Ports}}” | grep seafile
返回:
291b0bf26bcb seafile 80/tcp
2e2ce7697c8d seafile-mysql 3306/tcp
07580eb7572e seafile-memcached 11211/tcp
dee6900cda7d seafile-caddy 0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp, 2019/tcp

sudo docker logs seafile -f
返回:
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Booting runit daemon…
*** Runit started as PID 16
*** Running /scripts/enterpoint.sh…
2025-04-10 08:38:28 Waiting Nginx
2025-04-10 08:38:29 Nginx ready
2025-04-10 08:38:29 This is an idle script (infinite loop) to keep container running.
[2025-04-10 08:38:29] Now running setup-seafile-mysql.py in auto mode.
Checking python on this machine …

verifying password of user root … done


This is your configuration

server name:            seafile
server ip/domain:       seafile.tasei.com

seafile data dir:       /opt/seafile/seafile-data
fileserver port:        8082

database:               create new
ccnet database:         ccnet_db
seafile database:       seafile_db
seahub database:        seahub_db
database user:          seafile

Generating seafile configuration …

done
Generating seahub configuration …


Now creating seafevents database tables …



Now creating ccnet database tables …



Now creating seafile database tables …



Now creating seahub database tables …


creating seafile-server-latest symbolic link … done


Your seafile server configuration has been finished successfully.

run seafile server: ./seafile.sh { start | stop | restart }
run seahub server: ./seahub.sh { start | stop | restart }


If you are behind a firewall, remember to allow input/output of these tcp ports:

port of seafile fileserver: 8082
port of seahub: 8000

When problems occur, Refer to

    https://download.seafile.com/published/seafile-manual/home.md

for information.

[2025-04-10 08:38:31] Updating version stamp

Starting seafile server, please wait …
Seafile server started

Done.

Starting seahub at port 8000 …


Successfully created seafile admin

Seahub is started

Done.

目前在服务器本地浏览器输入localhost:8000提示unable to connect;直接输入localhost打开的是个空白页面

请问是什么情况?

检查下是否绑定了本地的host

还需要绑定host?

哦,我明白你说的了,就相当于给docker里的局域网做端口映射?具体怎么操作啊?感谢赐教

怎么没人了?怎么操作啊?谁绑谁啊?就回一句没有任何操作性的话就完了?

正常来说,是不需要绑定host和其他操作的,系统初始化完成后,您只需要在浏览器访问您服务器的IP就可以,如果没有修改端口,默认是80

我没改配置啊,就完全按照 部署社区版的步骤做的,.env里边只改了几个密码,Seafile服务器的主机名或域名我改成了内网的ip地址,现在是在服务器本机上用localhost打开就是个空白页面,更别说其他机器上用ip地址打开了,用的http://localhost

在服务器使用curl -v http://****(您的IP)试下是否可以访问,另外检查下服务器如果有开防火墙可以关掉再访问试下

  • Trying 192.168.6.84:80…
  • Connected to 192.168.6.84 (192.168.6.84) port 80
  • using HTTP/1.x

GET / HTTP/1.1
Host: 192.168.6.84
User-Agent: curl/8.12.1
Accept: /

  • Request completely sent off
    < HTTP/1.1 200 OK
    < Server: Caddy
    < Date: Wed, 16 Apr 2025 06:45:21 GMT
    < Content-Length: 0
    <
  • Connection #0 to host 192.168.6.84 left intact

您确认下.env文件中这个选项是不是这样配置的:SEAFILE_SERVER_HOSTNAME=192.168.6.84