使用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"即可安装客户端,一步步操作即可。

设置下载文件的目录

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

设置登录信息

登录后

可以全屏使用

上传文件

上传完成后

相关推荐
( •̀∀•́ )92024 分钟前
GitHub Actions SSH 部署密钥
运维·ssh·github
louqle39 分钟前
docker基本知识及常用命令汇总
运维·docker·容器
学烹饪的小胡桃1 小时前
【运维学习】实时性能监控工具 WGCLOUD v3.6.2 更新介绍
linux·运维·服务器·学习·工单系统
叫致寒吧1 小时前
Docker
运维·docker·容器
杨浦老苏1 小时前
现代流媒体聚合播放器冬瓜TV MAX
docker·群晖·多媒体
白露与泡影2 小时前
使用systemd,把服务装进 Linux 心脏里~
linux·运维·python
l1t3 小时前
用docker安装oracle 19c
运维·数据库·docker·oracle·容器
k***92163 小时前
【Linux】进程概念(五):详解环境变量的本质
linux·运维·服务器
专业开发者3 小时前
艾通科技(ITON Technology)借助蓝牙 ® 网状网络,构建适用于自动化控制应用的大规模设备网络
运维·物联网·自动化
KakiNakajima4 小时前
CentOS 7 x86系统安装EMQX 【kaki备忘录】
linux·运维·centos