centos 7 docker 安装seafile
一、下载docker
[root@lixian ~]# yum -y install yum-utils device-mapper-persistent-data lvm2
[root@lixian ~]# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
[root@lixian ~]# yum makecache fast
[root@lixian ~]# yum -y install docker-ce
[root@lixian ~]# systemctl start docker
二、拉取镜像
[root@lixian ~]# docker pull seafileltd/seafile
三、运行 #192.168.1.215 本机的IP
docker run -d --name seafile -e SEAFILE_SERVER_HOSTNAME=192.168.1.215 -v /data/seafile:/shared -p 80:80 seafileltd/seafile:latest
四、浏览器http://IP地址 访问seafile(默认用户名:me@example.com 默认密码:asecret)
=====================================
配置上传下载大小#seafile.conf
[root@lixian ~]# cat /data/seafile/seafile/conf/seafile.conf
[fileserver]
port = 8082
[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = ec2a3fc7-9fb3-4d6c3787f7bd3
db_name = seafile_db
connection_charset = utf8
[fileserver]
#最大上传文件单位为MB,为1TB
max_upload_size=1048576
#最大下载目录为MB,为1TB
max_download_dir_size=1048576
配置邮箱#seahub_settings.py
EMAIL_USE_TLS = False
EMAIL_HOST = 'smtp.exmail.qq.com 18' # smpt 服务器
EMAIL_HOST_USER = '************@qq.com' # 用户名和域名
EMAIL_HOST_PASSWORD = ‘************' # 密码
EMAIL_PORT = '465'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER