项目作者: halsbox

项目描述 :
alpine based fork of flwgns-docker/seafile-client
高级语言: Shell
项目地址: git://github.com/halsbox/docker-seaf-cli.git
创建时间: 2020-10-30T12:48:29Z
项目社区:https://github.com/halsbox/docker-seaf-cli

开源协议:GNU General Public License v3.0

下载






Share a Seafile library as a volume to other containers.

Supported tags

2, 2.1, 2.1.1, latest

Informations

  • Synchronize a single Seafile library, available at the path `/library/‘.
  • Password protected librairies are supported.
  • Two factor authentication is supported.
  • Upload and download speeds are configurable.
  • SSL certificates are skippable.
  • Ask questions on Seafile forum.
  • Contribute and report issues on Gitlab.

Usage

Required configuration

SEAF_SERVER_URL, SEAF_USERNAME, SEAF_PASSWORD, SEAF_LIBRARY_UUID
Provide your Seafile server URL, username, password and library UUID to synchronise your library at /library, then share it as a volume.

The seaf-cli is ran within the container as the user seafuser.

Optional configurations

SEAF_2FA_SECRET
Two factor authentication is supported but your secret key must be provided. That key can be found on your Seafile web interface, only at the 2FA setup, when the QR code is shown. The secret key is embedded in the QR or available as a cookie.

SEAF_LIBRARY_PASSWORD
Password protected librairies can be sync provided with the password.

SEAF_UPLOAD_LIMIT, SEAF_DOWNLOAD_LIMIT
Upload and download speeds are configurable as absolute bytes.

SEAF_SKIP_SSL_CERT
Skip SSL certificates verifications. Any string is considered true, omit the variable to set to false. Enable this if you have synchronization failures regarding SSL certificates.

UID, GID
Override the UID and GID for volume read/write permissions.

Examples

As a Docker command

  1. docker run \
  2. -e SEAF_SERVER_URL=https://seafile.example/ \
  3. -e SEAF_USERNAME=a_seafile_user \
  4. -e SEAF_PASSWORD=SoMePaSSWoRD \
  5. -e SEAF_LIBRARY_UUID=an-hexadecimal-library-uuid \
  6. -v path/to/shared/volume:/library \
  7. flowgunso/seafile-client:latest

As a Docker Compose

  1. services:
  2. seafile-client:
  3. image: flowgunso/seafile-client:latest
  4. volumes:
  5. - shared_volume:/library
  6. environment:
  7. SEAF_SERVER_URL: "https://seafile.example/"
  8. SEAF_USERNAME: "a_seafile_user"
  9. SEAF_PASSWORD: "SoMePaSSWoRD"
  10. SEAF_LIBRARY_UUID: "an-hexadecimal-library-uuid"
  11. volumes:
  12. shared_volume:

With all optional configurations

  1. services:
  2. seafile-client:
  3. image: flowgunso/seafile-client:latest
  4. volumes:
  5. - shared_volume:/library
  6. environment:
  7. SEAF_SERVER_URL: "https://seafile.example/"
  8. SEAF_USERNAME: "a_seafile_user"
  9. SEAF_PASSWORD: "SoMePaSSWoRD"
  10. SEAF_LIBRARY_UUID: "an-hexadecimal-library-uuid"
  11. SEAF_2FA_SECRET: "JBSWY3DPEHPK3PXPIXDAUMXEDOXIUCDXWC32CS"
  12. SEAF_LIBRARY_PASSWORD: "LiBRaRyPaSSWoRD"
  13. SEAF_UPLOAD_LIMIT: "1000000"
  14. SEAF_DOWNLOAD_LIMIT: "1000000"
  15. SEAF_SKIP_SSL_CERT: "true"
  16. UID: "1000"
  17. GID: "1000"
  18. volumes:
  19. shared_volume:

Or use the docker-compose.yml template.