在之前我介绍过了开源的网盘系统有 nextcloud 和 cloudreve 。今天要来分享的是Seafile。也是一款十分优秀的开源网盘系统。
这些功能的结合使得Seafile成为一个协作流畅、可控和高效的工具,助力团队在共享文件和协作过程中取得更好的效果。无论是小型团队还是跨部门合作,Seafile都能提供强大的共享协作支持,促进团队的协同工作和创造力。
其他比如说seafile的性能和在线编辑系统也是十分强大。 Seafile提供了高效快速的文件同步功能,用户可以在短短一分钟内同步上万个文件。同时,Seafile的设计使得服务器硬件资源消耗非常低,保证了系统的高效运行和快速响应速度。这使得Seafile不仅适用于小型企业和个人用户,也适用于各种规模的企业。 Seafile内置了协同文档编辑器SeaDoc,让用户能够直接在Seafile中进行协作撰写、管理和发布高质量的文档。SeaDoc的加入使得团队协作变得更加便捷和高效。多人可以同时编辑文档,实时同步更新,确保团队成员之间的协作无缝进行。
seafile有社区版和企业版,对于我们个人使用,那么我们使用免费的社区版就足够了。 接下来我们就来介绍一下部署方式。依然是使用docker-compose,所以前提是安装好docker-compose
ssh登录服务器后台,随便新建一个目录
在目录里执行 wget https://manual.seafile.com/docker/docker-compose.yml
将yml文件下载下来。考虑到有些同学网络不好。完整的yml文件内容如下:直接复制也可以。但是编辑器有时候复制的yml可能缩进有问题。 也可以直接访问网页:https://manual.seafile.com/docker/docker-compose.yml 来复制即可。
services:
db:
image: mariadb:10.11
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=db_dev # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
volumes:
- /opt/seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:
- seafile-net
memcached:
image: memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:
- "80:80"
# - "443:443" # If https is enabled, cancel the comment.
volumes:
- /opt/seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev # Requested, the value should be root's password of MySQL service.
- TIME_ZONE=Etc/UTC # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=me@example.com # Specifies Seafile admin user, default is 'me@example.com'.
- SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
depends_on:
- db
- memcached
networks:
- seafile-net
networks:
seafile-net:
将yml文件下载好之后,我们需要按需更改以下内容 MySQL root 的密码(MYSQL_ROOT_PASSWORD 和 DB_ROOT_PASSWD) MySQL数据的卷目录(volumes) Seafile 数据(卷)的卷目录。
默认管理员帐户为me@example.com,密码为asecret。可以在yml文件里自定义修改
docker compose up -d
来启动seafile了。等待几分钟,初始化完毕后。在前台访问我们配置的域名即可访问seafile的控制台。其他的安装方式或者对应配置可以参考官方文档:https://manual.seafile.com/docker/deploy_seafile_with_docker/创作不易,如果您觉得这篇文章对你有帮助,不妨给我点个赞,这将是我继续分享优质内容的动力。