部署 Seafile 开源企业云盘

一、Seafile 介绍

Seafile 简介

:::info

官网:https://www.seafile.com/

GitHub:https://github.com/haiwen/seafile

:::

Seafile 是一款开源的企业云盘,注重可靠性和性能。

支持 Windows,Mac,Linux,iOS,Android 平台。

支持文件同步或者直接挂载到本地访问。

Seafile 特点

  1. 可靠的文件同步
  2. 挂载盘客户端
  3. 团队协作
  4. 高性能
  5. Wiki 与知识管理
  6. 适用于企业环境

二、检查宿主机系统版本

bash 复制代码
cat /etc/os-release

三、检查本地 Docker 环境

检查 Docker 服务状态

bash 复制代码
// 1) 低版本 Docker 安装
yum install docker -y

----
// < '推荐' >
// 2) 高版本 Docker 安装
curl -fsSL https://get.docker.com/ | sh

----
// 关闭防火墙
systemctl disable --now firewalld
setenforce 0

// 启用 Docker
systemctl enable --now docker

检查 Docker 配置信息

bash 复制代码
docker info

开启 IPv4 forwarding

bash 复制代码
[root@blog ~] echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
[root@blog ~] systemctl restart network
[root@blog ~] sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

四、安装 Docker-compose

下载 Docker-compose 二进制包

bash 复制代码
curl -L https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose

给文件增加执行权限

bash 复制代码
chmod +x /usr/local/bin/docker-compose

检查 Docker-compose 版本

bash 复制代码
docker-compose -v

五、安装 Seafile

编辑 Docker-compose.yaml 文件

bash 复制代码
mkdir /docker/seafile -p && cd /docker/seafile
bash 复制代码
[root@blog seafile] vim docker-compose.yaml 
version: '2.0'
services:
  db:
    image: mariadb:10.5
    container_name: seafile-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=P@ssw0rd123456  # Requested, set the root's password of MySQL service.
      - MYSQL_LOG_CONSOLE=true
    volumes:
      - /docker/seafile/db:/var/lib/mysql  # Requested, specifies the path to MySQL data persistent store.
    networks:
      - seafile-net

  memcached:
    image: memcached:1.6
    container_name: seafile-memcached
    entrypoint: memcached -m 256
    networks:
      - seafile-net
          
  seafile:
    image: seafileltd/seafile-mc:latest
    container_name: seafile
    ports:
      - 8099:80
#      - "443:443"  # If https is enabled, cancel the comment.
    volumes:
      - /docker/seafile/data:/shared   # Requested, specifies the path to Seafile data persistent store.
    environment:
      - DB_HOST=db
      - DB_ROOT_PASSWD=P@ssw0rd123456  # 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:

创建 Seafile

bash 复制代码
docker-compose up -d

查看容器状态

bash 复制代码
docker ps -a

查看 Seafile 容器日志

bash 复制代码
docker-compose logs -f

六、登录 Seafile

:::info

**如下信息:**可以在 docker-compose 文件中修改

:::

me@example.com

asecret

七、进入 Seafile 首页

八、Seafile 基本操作

进入系统管理后台

修改 Seafile 域名解析

此处必须修改,否则影响文件上传。

新建资料库

上传文件


大工告成~

相关推荐
猫头虎4 小时前
【汉化中文版】OpenClaw(Clawdbot/Moltbot)第三方开源汉化中文发行版部署全指南:一键脚本/Docker/npm 三模式安装+Ubuntu 环境配置+中文汉化界面适配开源版
docker·npm·开源·aigc·ai编程·远程工作·openclaw
熊猫钓鱼>_>6 小时前
【开源鸿蒙跨平台开发先锋训练营】Day20 React Native 鸿蒙开发全阶段大复盘:从零到一的跨越
react native·开源·react·harmonyos·鸿蒙·openharmony·native
GitCode官方6 小时前
智谱最新一代旗舰模型 GLM-5 开源,AtomGit AI 首发上线
人工智能·开源
OpenLoong 开源社区6 小时前
白虎数据集单平台单日下载破4万次,总下载量达百万,热度持续飙升!
机器人·开源·openloong开源社区
laoliu19967 小时前
开源 FRP GUI 客户端
git·开源·github
京东零售技术7 小时前
2025·xLLM开源项目年度总结
开源
OpenLoong 开源社区7 小时前
开源发布 | 从青龙Nano到青龙Mini:共建开源生态,首次亮相产教融合场景
人工智能·开源
熊猫钓鱼>_>7 小时前
【开源鸿蒙跨平台开发先锋训练营】Day 12:全场景适配与异常防护——构建高可靠的鸿蒙跨端体验
react native·ui·华为·开源·app·harmonyos·鸿蒙
乐茵lin9 小时前
github开源项目 “校园活动平台“ —— 报名活动二维码生成核销流程详解
计算机·微服务·golang·开源·github·大学生·zero
开源能源管理系统9 小时前
开源模式下的企业级能源管理系统架构演进与实践思考
系统架构·开源·能源管理系统