使用docker安装seafile

使用docker安装seafile

1 介绍seafile

Seafile 是一款开源的企业云盘,支持全平台(浏览器、Windows、Mac、Linux、Android、IPhone等)客户端。Seafile 内置协同文档 SeaDoc ,让协作撰写、管理和发布文档更便捷。最重要的这是国产软件!

用起来感觉比NextCloud要好一点。

2 使用docker-compose安装

参考地址

复制代码
https://cloud.seafile.com/published/seafile-manual-cn/docker/%E7%94%A8Docker%E9%83%A8%E7%BD%B2Seafile.md

2.1 下载docker-compose

复制代码
# SeaFile的docker-compose下载地址
https://cloud.seafile.com/d/f4e8883db63845d29350/?p=%2F&mode=list

seafile-11.0的docker-compose.yml

⚠️ 注意:下面文件中"seafile->environment->SEAFILE_SERVER_HOSTNAME=seafile.example.com"中的"seafile.example.com"可以更改为服务器的域名,一定要更改为可用的。此处也可以在系统启动后,在系统中修改。

yaml 复制代码
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:11.0-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 shuold be root's password of MySQL service.
      - TIME_ZONE=Asia/Shanghai # 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 use letsencrypt to generate cert.
      - SEAFILE_SERVER_HOSTNAME=seafile.example.com # Specifies your host name.
    depends_on:
      - db
      - memcached
    networks:
      - seafile-net

networks:
  seafile-net:

2.2 安装

复制代码
# 在home目录下创建目录
mkdir seafile

# 将docker-compose放入上面的目录中

# 执行下面的命令,这个过程需要时间
docker compose up -d

执行截图

2.3 初始化一个管理员账号

复制代码
# 在机器中执行如下命令
docker exec -it seafile /opt/seafile/seafile-server-latest/reset-admin.sh

执行截图

3 简单使用

3.1 浏览器方式

在浏览器中输入地址:

复制代码
http://192.168.108.200/

登录

自动跳转到相应的页面中

使用刚才创建的账号:

复制代码
账号:123456@qq.com
密码:123456

登录后

管理员账号

管理员设置

⚠️ 注意,这个地方一定要设置为你的服务器可用的地址,否则上传文件、管理文件等都会提示"上传识别,网络错误"导致无法使用;

用户设置

在"系统管理"中添加用户,并为用户设置容量

上传文件

3.2 客户端方式

下载客户端

选则windows客户端

复制代码
https://www.seafile.com/download/

下载的软件如下:

安装客户端

双击"seafile-9.0.5.msi"即可安装客户端,一步步操作即可。

设置下载文件的目录

安装后会提示设置下载目录:

设置登录信息

登录后

可以全屏使用

上传文件

上传完成后

相关推荐
风曦Kisaki13 分钟前
#Linux数据库管理Day06:主从同步与MaxScale读写分离
linux·运维·数据库
Tipriest_1 小时前
ubuntu创建和更换当前swap大小
linux·运维·ubuntu
雨辰AI1 小时前
生产级实战:人大金仓 V9 标准化运维手册(日常巡检 + 监控告警 + 应急处置)
java·运维·数据库·后端
ejinxian2 小时前
微虚拟机 smolvm 与Docker 容器比较
运维·docker·容器·smolvm
ShiXZ2132 小时前
PDF-OCR文件识别篇(八):配置、运维与排错
java·运维·ocr·dubbo·springboot
爱码少年3 小时前
Docker如何一次查看多个容器日志
运维·docker·容器
WI8LbH7883 小时前
Ubuntu 部署Harbor
linux·运维·ubuntu
huainingning3 小时前
华三ACL单向TCP互通组网-通过Established状态回包实现
运维·网络·tcp/ip
蜀道山老天师3 小时前
K8s 数据存储全解析:从 EmptyDir 到 PV/PVC
云原生·容器·kubernetes
researcher-Jiang3 小时前
高性能计算之MPI:第一次MPI并行程序设计练习
linux·运维·服务器