基于官方ubuntu20.04 + seafile 8.0.3 本地打包而成的一个镜像
本地测试成功示例:
docker run --name seafile --rm --device /dev/fuse --privileged -p 8000:8000 -p 8082:8082 -p 8080:8080 -v /data/seafile_fuse:/opt/seafile/fuse -v /root/seafile-data:/opt/seafile/seafile-data -d danxiaogui57/seafile:8.0.3 /opt/seafile/startup.sh
自己可根据官方文档重置管理员密码
默认开启 webdav fuse功能
如果需要用nginx转发可参考如下 对应的nginx配置参考:
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
client_max_body_size 0;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
}
location /seafdav {
proxy_pass http://127.0.0.1:8080/seafdav;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 1200s;
client_max_body_size 0;
access_log /var/log/nginx/seafdav.access.log;
error_log /var/log/nginx/seafdav.error.log;
}
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
proxy_read_timeout 1200s;
client_max_body_size 0;
}
其它问题: 1.如果安装好后台可以登陆但无法上传和下载,请尝试修改后台设置中的 "FILE_SERVER_ROOT" 值与之域名或者IP 跟ngnix转的配置一致
目前自用没啥问题 内存占用不大,目前自己用的是阿里云轻量级服务器1U1G的配置
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2dba8750d67c danxiaogui57/seafile:8.0.3 "/opt/seafile/startu…" 35 hours ago Up 25 hours 0.0.0.0:8000->8000/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8082->8082/tcp seafile
free -h
total used free shared buff/cache available
Mem: 981Mi 399Mi 200Mi 1.0Mi 380Mi 432Mi
Swap: 947Mi 52Mi 894Mi
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
2dba8750d67c seafile 0.07% 252MiB / 981.3MiB 25.68% 7.4MB / 209MB 322MB / 8.2MB 42
Content type
Image
Digest
Size
613.1 MB
Last updated
over 5 years ago
docker pull danxiaogui57/seafile:wudl.tech1.0