Seafile client inside a Docker container that can synchronize multiple libraries for the given user credentials.
Mount your libraries to $SEAFILE_MOUNT_LOCATION in subfolders with the library UUIDs that can be obtained through https://seafile.yourdomain.com/libraries/$UUID. It will automatically synchronize the libraries under the given folder for the given user credentials.
CLI
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$LOG_LEVEL | Define the log level for the application. | stringenum("panic", "fatal", "warn", "info", "debug", "trace") | "info" |
$ENV_FILE | Environment files to inject. | string[] |
Credentials
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$USERNAME* | Email address of the user that owns the libraries. | string | |
$PASSWORD | Password of the user that owns the libraries. | string | |
$TOKEN | Token of the user that owns the libraries. | string |
* required
Health
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$HEALTH_STATUS_INTERVAL | Interval for outputting current status. | duration | 5m0s |
$HEALTH_EXIT_ON_FAILURE | Exit the process when a health check fails, so the orchestrator can restart the container. | bool | true |
Seafile
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$SEAFILE_MOUNT_LOCATION | Mount location for the libraries. | string | "/data" |
$SEAFILE_DATA_LOCATION | Mount location for the data. | string | "/seafile" |
$SEAFILE_UMASK | Umask to configure for the Seafile client. | string |
Server
| Flag / Environment | Description | Type | Default |
|---|---|---|---|
$SERVER_URL* | External url of the given Seafile server. | string |
* required
You can check out the example setup inside docker-compose.yml to see how this container can become operational. Please mind the environment variables for the configuration as well as the section about the configuration files and their generation.
Content type
Image
Digest
sha256:48995f00b…
Size
56.3 MB
Last updated
4 days ago
docker pull cenk1cenk2/seafile-cli