mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-12-06 01:43:12 +08:00
add imagor as thumbnail generator
thumbnails/imagor.yml runs ghcr.io/cshum/imagor-magick and points WEBDAV_THUMBNAILS_GENERATOR_URL at it. The built-in thumbnails service is no longer started, it is going to lose libvips and with it most formats. All COMPOSE_FILE examples include the new file. imagor only gets unsigned /unsafe/ URLs from webdav, so it must only be reachable on opencloud-net. It is configured with the same limits as the built-in service and only accepts uploads, it never fetches URLs. On top of the built-in list we announce previews for heic, heif, avif, jp2, psd, tga, pcx, svg and ico. I checked each against a running stack. pdf is read by imagor, but webdav 9.0.0 only passes image types to the generator. jxl ends up as application/octet-stream in reva, so it would need a mime mapping first. OC_EXCLUDE_RUN_SERVICES is now set by imagor.yml and the idm files, and compose keeps only the value of the last file. Each file prepends the new EXCLUDE_ADDITIONAL_SERVICES, so combining them works when it lists all of them: EXCLUDE_ADDITIONAL_SERVICES=idm,idp,thumbnails related: https://github.com/opencloud-eu/opencloud/issues/3912 Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
24
README.md
24
README.md
@@ -195,6 +195,27 @@ By default, OpenCloud Compose uses `apache/tika:latest` which provides:
|
||||
|
||||
The base variant is recommended for most use cases. If you need advanced features like specialized OCR processing or specific image format support, you can override the image by setting `TIKA_IMAGE=apache/tika:latest-full` in your `.env` file.
|
||||
|
||||
### With Imagor Thumbnails
|
||||
|
||||
[Imagor](https://imagor.net) makes the thumbnails instead of the thumbnails service built into OpenCloud, which only supports a minimal set of formats. All `COMPOSE_FILE` examples in `.env.example` include it.
|
||||
|
||||
Using `-f` flags:
|
||||
```bash
|
||||
docker compose -f docker-compose.yml -f thumbnails/imagor.yml -f traefik/opencloud.yml up -d
|
||||
```
|
||||
|
||||
Or by setting in `.env`:
|
||||
```
|
||||
COMPOSE_FILE=docker-compose.yml:thumbnails/imagor.yml:traefik/opencloud.yml
|
||||
```
|
||||
|
||||
This setup includes:
|
||||
- the `ghcr.io/cshum/imagor-magick` image, which is only reachable on the internal network
|
||||
- previews for HEIC, HEIF, AVIF, JPEG 2000, PSD, TGA, PCX, SVG and ICO files on top of the built-in formats, configurable with `IMAGOR_ADDITIONAL_SOURCE_TYPES`
|
||||
- the built-in thumbnails service is not started
|
||||
|
||||
`thumbnails/imagor.yml` and the `idm/` files each set `OC_EXCLUDE_RUN_SERVICES`, and docker compose only keeps the value of the last file. When combining them, set `EXCLUDE_ADDITIONAL_SERVICES=idm,idp,thumbnails` in `.env`.
|
||||
|
||||
### With the Yjs Server
|
||||
|
||||
The yjs server enables collaborative editing of files. The browser connects to `wss://{OC_DOMAIN}/yjs`. The OpenCloud proxy forwards this route to the yjs container, so no extra DNS entry or port is needed.
|
||||
@@ -422,6 +443,8 @@ Key variables:
|
||||
| `EURO_OFFICE_DOCKER_IMAGE` | Euro Office Docker image | ghcr.io/euro-office/documentserver |
|
||||
| `EURO_OFFICE_DOCKER_TAG` | Euro Office Docker tag | latest |
|
||||
| `TIKA_IMAGE` | Apache Tika image tag | apache/tika:slim |
|
||||
| `IMAGOR_DOCKER_TAG` | Imagor image tag | 1.9.11 |
|
||||
| `EXCLUDE_ADDITIONAL_SERVICES` | Services not to start, see imagor and idm sections | (no value) |
|
||||
| `KEYCLOAK_DOMAIN` | Keycloak domain | keycloak.opencloud.test |
|
||||
| `KEYCLOAK_ADMIN` | Keycloak admin username | kcadmin |
|
||||
| `KEYCLOAK_ADMIN_PASSWORD` | Keycloak admin password | admin |
|
||||
@@ -477,6 +500,7 @@ This repository uses a modular approach with multiple compose files:
|
||||
- `weboffice/` - Web office integrations (Collabora Online)
|
||||
- `storage/` - Storage backend configurations (decomposeds3)
|
||||
- `search/` - Search and content analysis services (Apache Tika)
|
||||
- `thumbnails/` - Thumbnail generator (imagor)
|
||||
- `monitoring/` - Monitoring and metrics configurations
|
||||
- `idm/` - Identity management configurations (Keycloak & LDAP)
|
||||
- `traefik/` - Traefik reverse proxy configurations
|
||||
|
||||
Reference in New Issue
Block a user