Go to file
2023-09-14 16:24:59 -07:00
.github/workflows Update github workflow 2020-08-26 00:06:59 +03:00
dsc Wait for seafile daemon to start 2023-09-14 16:22:02 -07:00
.gitignore Update .gitignore 2019-12-09 21:25:01 +03:00
docker-compose.example.yml Support library names in configuration 2022-01-30 18:27:37 +03:00
Dockerfile Support library names in configuration 2022-01-30 18:27:37 +03:00
LICENSE Update license 2019-12-09 21:25:12 +03:00
README.md Support library names in configuration 2022-01-30 18:27:37 +03:00
requirements.txt Bump requests from 2.27.1 to 2.31.0 2023-05-23 03:15:40 +00:00
start.py Support library names in configuration 2022-01-30 18:27:37 +03:00

docker-seafile-client

Runs a seafile client in docker with possibility to sync seafile repositories.

Docker-compose example:

version: '3'

services:
  seafile-client:
    restart: always
    image: snegov/seafile-client
    environment:
      - LIBRARY_ID=<your-library-id-here>
      - SERVER_HOST=<server-host>
      - USERNAME=<username>
      - PASSWORD=<password>
      - SEAFILE_UID=<your_uid>
      - SEAFILE_GID=<your_gid>
    hostname: docker-seafile-client
    volumes:
      - seafile-data:/seafile-client/seafile-data
      - <host-volume-path>:/data

volumes:
  seafile-data:

Library id could be found from "My Libraries" page in Seafile webUI - link to each library contains library ID in it.

Inside container libraries' content will be put in /data directory, so map your host directory to it.

hostname parameter in docker-compose will set client name in Seafile's "Linked devices" admin page. Resulting name will be prefixed by "terminal-".

Also you could check docker-compose example.

Environment variables:

  • LIBRARY_ID=<your-library-id-here> Library to sync, ID or name; multiple libraries could be separated by colon :.
  • SERVER_HOST=<server-host> Hostname of your seafile server, eg: seafile.example.com. If you're using non-standart port, specify it here, eg: seafile.example.com:8080.
  • USERNAME=<username> Seafile account username.
  • PASSWORD=<password> Seafile account password.
  • SEAFILE_UID=<uid> Downloaded files will have this uid.
  • SEAFILE_GID=<gid> Downloaded files will have this gid.