2018-04-18 16:28:15 +00:00
# docker-seafile-client
2021-01-30 19:35:48 +00:00
Run a seafile client inside docker which can sync files from seafile repositories.
2018-04-18 16:38:25 +00:00
2021-01-30 19:35:48 +00:00
See [docker-compose ](docker-compose.example.yml ) how to use.
2018-04-18 16:38:25 +00:00
2019-04-14 10:18:09 +00:00
## Docker-compose example:
```yaml
version: '3'
services:
seafile-client:
restart: always
2019-12-10 19:44:33 +00:00
image: snegov/seafile-client
2019-04-14 10:18:09 +00:00
container_name: 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 >
volumes:
2021-02-28 20:27:26 +00:00
- seafile-data:/seafile-client/seafile-data
2021-02-28 20:24:37 +00:00
- < host-volume-path > :/data
2021-02-28 20:27:26 +00:00
volumes:
seafile-data:
2019-04-14 10:18:09 +00:00
```
2021-02-28 20:24:37 +00:00
Inside container libraries' content will be put in `/data` directory, so map your host directory to it.
2018-04-18 16:44:24 +00:00
## Environment variables:
2019-04-14 10:08:29 +00:00
- `LIBRARY_ID=<your-library-id-here>` ID of library to sync; multiple libraries could be separated by colon `:`
2020-08-25 18:16:05 +00:00
- `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
2019-04-14 10:08:29 +00:00
- `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