root@f894d5e5b2bf:/opt/seafile/seafile-server-7.1.4# ./seafile.sh start debug
usage :
seafile.sh { start | stop | restart }
root@f894d5e5b2bf:/opt/seafile/seafile-server-7.1.4# ./seafile.sh start
Error: there is no conf/ directory.
Have you run setup-seafile.sh before this?
提示找不到conf目录,宿主机目录已挂载,配置文件从官方下载,只修改了挂载这一项
root@f894d5e5b2bf:/opt/seafile/seafile-server-7.1.4# ./setup-seafile-mysql.sh
Checking python on this machine …
This script will guide you to setup your seafile server using MySQL.
Make sure you have read seafile server manual at
https://download.seafile.com/published/seafile-manual/home.md
Press ENTER to continue
只改了挂载目录,别的没改。
同样的配置和Docker版本在Centos7 2003 一次性成功。
问题已找到,CentOS8中docker部署关了防火墙就可以正常了。
在生产环境中可以加上docker容器访问ip伪装
firewall-cmd --zone=public --add-masquerade --permanent
然后重启防火墙 systemctl restart firewalld
重启 systemctl restart docker
重新 docker-compose up -d
希望大家少踩坑