* run the thumbnails service in its own container
Since 9.0.0 the thumbnails service is a stateless resizer: webdav posts
the source image to WEBDAV_THUMBNAILS_GENERATOR_URL and keeps the
cache. We now start it as `opencloud thumbnails server` in a dedicated
container from the same image and exclude it from the main container.
Decoding untrusted images is a classic attack surface. The new
container has no access to the config, the secrets or the data, runs
read-only without capabilities and is only reachable on the internal
thumbnails-net. The service has no authentication, so it must not be
exposed. It costs about 50MB of RAM for the extra process.
The exclude list becomes static, so the idm files simply add
thumbnails to it. This avoids the order dependent
EXCLUDE_ADDITIONAL_SERVICES workaround of
https://github.com/opencloud-eu/opencloud-compose/pull/422, the imagor
module only has to point the generator URL at imagor.
The container registers with an in memory registry, there is no nats
to talk to and webdav uses the URL anyway.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* let imagor replace the thumbnails container
thumbnails/imagor.yml now scales the built-in thumbnails container to
0 instead of leaving it idle next to imagor. opencloud only waits for
imagor, the depends_on of the base file is replaced with !override,
which needs docker compose 2.24.4 or newer.
Scaling to 0 instead of a profile also stops a running thumbnails
container when imagor is added to an existing deployment. Removing
imagor.yml again brings it back, --remove-orphans cleans up imagor.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
---------
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
The image schema, the wording in .env.example and the renovate rules
are conventions no file states on its own. Write them down where
coding agents and contributors look first.
Concrete default versions go stale with the first renovate bump, the
imagor one already was. Use the same sentence for every pinned image
and list all image variables uncommented and empty in .env.example.
These five images defaulted to "latest". A host that never pulls stays
on whatever "latest" was at first start, a fresh install gets an
untested version, and one repository state does not describe one set
of images.
Pin each to the version "latest" points to today. Euro Office publishes
no version tags, so it is pinned by digest. The tag variables can still
be set to "latest".
clamav only had a tag variable and the ldap manager none. Give both an
image and a tag variable like the other images that default to a moving
tag, so every such image is configured, pinned and bumped the same way.
Tika was the only image that took name and tag in one variable. Use
TIKA_DOCKER_IMAGE and TIKA_DOCKER_TAG like the other images, so the
tag can be pinned and bumped the same way.
TIKA_DOCKER_VARIANT=full selects the full image without naming a tag, so
choosing the variant no longer means choosing a version.
BREAKING CHANGE: TIKA_IMAGE is no longer read, compose aborts with a
message while it is still set. Replace
TIKA_IMAGE=apache/tika:latest-full with TIKA_DOCKER_VARIANT=full, or set
TIKA_DOCKER_IMAGE and TIKA_DOCKER_TAG for any other image.
Patch updates were merged automatically for images written as a fixed
string, but not for images whose tag is a variable, because the rule
was bound to renovate's docker-compose manager. Which manager reads an
image says nothing about how risky its patch releases are.
Drop the manager from the rule, so it covers every image. An image
that should not be merged automatically gets its own rule by package
name, where the exception is visible.
The regex manager needed a "# renovate: depName=" annotation above the
image line and the compose file in a list, and it only understood a
plain x.y.z tag. opensearch was pinned but had neither, so it was never
updated.
Read the image name from the image line itself, scan all yaml files and
accept any tag, with or without a digest. An image is picked up as soon
as its tag is the default of a variable, nothing else to remember.
@@ -57,6 +57,7 @@ Every new image follows one schema. Renovate detects it from the schema alone, t
```
- **Version limits:** an image that must stay on one major gets an `allowedVersions` rule by package name, like `postgres`.
- **Update frequency:** an image pinned by digest gets a PR for every new `latest`. If that is too often, limit it with a `schedule` rule by package name, like `ghcr.io/euro-office/documentserver` (weekly).
- **Tag suffix variants:** a variant published as a tag suffix is a third variable appended to the tag, like `TIKA_DOCKER_VARIANT` in `search/tika.yml`. A variant published as a separate image needs nothing, the image variable selects it.
- **Stable branches:** `renovate.json` on `main` also governs `stable-*`. Check a pattern change against the `image:` lines on those branches.
@@ -196,11 +196,17 @@ By default, OpenCloud Compose uses the base variant of `apache/tika` which provi
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 switch to the full variant by setting `TIKA_DOCKER_VARIANT=full` in your `.env` file.
### Thumbnails
The thumbnails service of OpenCloud runs in its own `thumbnails` container, started from the same image as `opencloud`. Decoding untrusted images is a classic attack surface, so it happens in a container without access to the config, the secrets or the data of OpenCloud: a read-only filesystem, no capabilities and only the internal `thumbnails-net` network, which has no route to the outside. The service has no authentication, so never publish its port or route to it through the reverse proxy.
The webdav service posts the source images to `http://thumbnails:9186`. The additional container needs about 50 MB of RAM.
### With imagor Previews
The OpenCloud image ships no libheif on purpose, so a heic, heif or avif is refused with `406 unreadable image`. imagor reads those formats. Enable it using either method:
> **Version Requirement**: This setup needs OpenCloud 9.0.0 or newer.
> **Version Requirement**: This setup needs OpenCloud 9.0.0 or newer and Docker Compose 2.24.4 or newer, which understands the `!override` tag.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.