All Projects → hanwckf → seafile-arm64-docker

hanwckf / seafile-arm64-docker

Licence: other
No description, website, or topics provided.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects
Dockerfile
14818 projects

seafile-arm64-docker

系统要求

  • (推荐)SQLite版本:1GB或以上RAM的ARM64机器
  • MariaDB版本:2GB或以上RAM的ARM64机器
    • 例如:树莓派4、斐讯N1、小睿私人云(原生SATA)、乐橙sn1(原生SATA)

传统部署方法

# /mnt/seafile-sqlite: seafile数据目录,修改为本机实际目录
# SEAFILE_ADMIN_EMAIL: seafile管理员账号邮箱
# SEAFILE_ADMIN_PASSWORD: seafile管理员密码
# SEAFILE_SERVER_HOSTNAME: seafile服务器域名,可以设置成IP地址或者hostname,如`192.168.1.8`或者`raspberrypi`

docker run -d \
    -v /mnt/seafile-sqlite:/shared \
    -e "DB_TYPE=sqlite" \
    -e "[email protected]" \
    -e "SEAFILE_ADMIN_PASSWORD=asecret" \
    -e "SEAFILE_SERVER_HOSTNAME=seafile.example.com" \
    -p 80:80 \
    --name seafile-sqlite \
    --restart=always \
    hanwckf/seafile:latest

docker-compose部署方法

  1. 安装好docker和docker-compose

  2. 下载docker-compose配置文件

  3. 修改docker-compose.yml

    • volumes: MariaDB和seafile的数据目录,修改:前的路径为本机实际目录
    • SEAFILE_ADMIN_EMAIL: seafile管理员账号邮箱
    • SEAFILE_ADMIN_PASSWORD: seafile管理员密码
    • SEAFILE_SERVER_HOSTNAME: seafile服务器域名,可以设置成IP地址或者hostname,如192.168.1.8或者raspberrypi
    • MYSQL_ROOT_PASSWORD, DB_ROOT_PASSWD: (仅MariaDB版本)MariaDB的root密码,必须配置成相同的值
  4. docker-compose.yml所在的目录下运行docker-compose up -d

  5. 等待容器启动完毕(可能需要3分钟),访问http://<SEAFILE_SERVER_HOSTNAME>:80

常见问题

如何查看seafile运行日志?

docker logs seafile

如何开启seafdav?

  1. 修改<seafile.volumes>/data/seafile/conf/seafdav.conf,把enabledfastcgi选项都改成true

  2. 重新启动seafile容器

  3. 访问http://<SEAFILE_SERVER_HOSTNAME>/seafdav

如何更新seafile?

docker pull hanwckf/seafile:latest
docker-compose down
docker-compose up -d

参考资料

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].