mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-12-06 01:43:12 +08:00
* 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>
1.4 KiB
1.4 KiB