Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cenk1cenk2/docker-seafile-cli
[mirror: https://gitlab.kilic.dev/docker/seafile-cli]
https://github.com/cenk1cenk2/docker-seafile-cli
Last synced: about 4 hours ago
JSON representation
[mirror: https://gitlab.kilic.dev/docker/seafile-cli]
- Host: GitHub
- URL: https://github.com/cenk1cenk2/docker-seafile-cli
- Owner: cenk1cenk2
- Created: 2022-09-29T17:47:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T23:04:02.000Z (about 1 month ago)
- Last Synced: 2024-10-17T08:29:03.674Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 181 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cenk1cenk2/seafile-cli
[![pipeline status](https://gitlab.kilic.dev/docker/seafile-cli/badges/master/pipeline.svg)](https://gitlab.kilic.dev/docker/seafile-cli/-/commits/master) [![Docker Pulls](https://img.shields.io/docker/pulls/cenk1cenk2/seafile-cli)](https://hub.docker.com/repository/docker/cenk1cenk2/seafile-cli) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/cenk1cenk2/seafile-cli)](https://hub.docker.com/repository/docker/cenk1cenk2/seafile-cli) [![Docker Image Version (latest by date)](https://img.shields.io/docker/v/cenk1cenk2/seafile-cli)](https://hub.docker.com/repository/docker/cenk1cenk2/seafile-cli) [![GitHub last commit](https://img.shields.io/github/last-commit/cenk1cenk2/seafile-cli)](https://github.com/cenk1cenk2/seafile-cli)
## Description
Seafile client inside a Docker container that can synchronize multiple libraries for the given user credentials.
---
- [CLI Documentation](./CLI.md)
- [Setup](#setup)
- [Environment Variables](#environment-variables)
- [CLI](#cli)
- [Credentials](#credentials)
- [Health](#health)
- [Seafile](#seafile)
- [Server](#server)
- [Deploy](#deploy)---
## Setup
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.
## Environment Variables
### CLI
| Flag / Environment | Description | Type | Required | Default |
|---------------- | --------------- | --------------- | --------------- | --------------- |
| `$LOG_LEVEL` | Define the log level for the application. | `String`
`enum("panic", "fatal", "warn", "info", "debug", "trace")` | `false` | info |
| `$ENV_FILE` | Environment files to inject. | `StringSlice` | `false` | |### Credentials
| Flag / Environment | Description | Type | Required | Default |
|---------------- | --------------- | --------------- | --------------- | --------------- |
| `$USERNAME` | Email address of the user that owns the libraries. | `String` | `true` | |
| `$PASSWORD` | Password of the user that owns the libraries. | `String` | `true` | |### Health
| Flag / Environment | Description | Type | Required | Default |
|---------------- | --------------- | --------------- | --------------- | --------------- |
| `$HEALTH_CHECK_INTERVAL` | Health check interval for processes. | `Duration` | `false` | 10m |
| `$HEALTH_STATUS_INTERVAL` | Interval for outputting current status. | `Duration` | `false` | 1h |### Seafile
| Flag / Environment | Description | Type | Required | Default |
|---------------- | --------------- | --------------- | --------------- | --------------- |
| `$SEAFILE_MOUNT_LOCATION` | Mount location for the libraries. | `String` | `false` | /data |
| `$SEAFILE_DATA_LOCATION` | Mount location for the data. | `String` | `false` | /seafile |### Server
| Flag / Environment | Description | Type | Required | Default |
|---------------- | --------------- | --------------- | --------------- | --------------- |
| `$SERVER_URL` | External url of the given Seafile server. | `String` | `true` | |## Deploy
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.