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

设置下载文件的目录

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

设置登录信息

登录后

可以全屏使用

上传文件

上传完成后

相关推荐
DARLING Zero two♡1 小时前
【Linux操作系统】简学深悟启示录:进程控制
linux·运维·服务器
我真的是大笨蛋2 小时前
K8S笔记-容器和镜像
笔记·云原生·容器·kubernetes
wheeldown3 小时前
【Linux】为什么死循环卡不死 Linux?3 个核心逻辑看懂进程优先级与 CPU 调度密码
linux·运维·服务器·开发语言·c++·unix·进程
xxy.c3 小时前
嵌入式解谜日志-网络编程(udp,tcp,(while循环原理))
linux·运维·c语言·开发语言·数据结构
qq_339191144 小时前
docker 启动一个clickhouse , docker 创建ck数据库
clickhouse·docker·容器
守.护5 小时前
云计算学习笔记——Linux系统网络配置与远程管理(ssh)篇
linux·运维·服务器·ssh·linux网络配置
Lynnxiaowen7 小时前
今天我们继续学习shell编程语言的内容
linux·运维·学习·云计算·bash
Molesidy9 小时前
【随笔】【Debian】【ArchLinux】基于Debian和ArchLinux的ISO镜像和虚拟机VM的系统镜像获取安装
运维·debian·archlinux
skywalk81639 小时前
mayfly-go:web 版 linux、数据库等管理平台
linux·运维·数据库
dbdr090110 小时前
Linux 入门到精通,真的不用背命令!零基础小白靠「场景化学习法」,3 个月拿下运维 offer,第二十四天
linux·运维·c语言·python·学习