Compare commits

..

1 Commits

Author SHA1 Message Date
Jörn Friedrich Dreyer
9b9bd35745 let imagor make all thumbnails
thumbnails/imagor.yml now also stops the built-in thumbnails service,
it is going to lose libvips and with it most formats. All COMPOSE_FILE
examples include the imagor file.

OpenCloud gets the same max input size as imagor, so both refuse the
same files, and the max width, height and animation frames of imagor
are configurable. UPLOAD_LOADER_MAX_ALLOWED_SIZE is quoted now, an
unquoted large number reaches imagor as 5e+07 which it cannot parse.

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

That is easy to miss, so the keycloak and external-idp examples carry
it right below the COMPOSE_FILE line. Without it the order decides: the
examples load imagor.yml before the idm file, so only the idle built-in
thumbnails service keeps running. The other way round idm and idp would
be started again.

The documented default imagor tag was still 1.9.14, it is 1.10.4.

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>
2026-11-17 16:01:18 +01:00
19 changed files with 108 additions and 217 deletions

View File

@@ -10,24 +10,28 @@ INSECURE=true
## Features ##
# The following variable is a convenience variable to enable or disable features of this compose project.
# Example: if you want to use traefik and letsencrypt, you can set the variable to
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:traefik/opencloud.yml
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:traefik/opencloud.yml
# This enables you to just run `docker compose up -d` and the compose files will be added to the stack.
# As alternative approach you can run `docker compose -f docker-compose.yml -f docker-compose.traefik.yml up -d`
# Default: OpenCloud and Collabora with traefik and letsencypt
# This needs DNS entries for the domain names used in the .env file.
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml
# If you want to use the external proxy, you can use the following combination.
# DNS entries and certificates need to be managed by the external environment.
# The domain names need to be entered into the .env file.
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:external-proxy/opencloud.yml:external-proxy/collabora.yml
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/collabora.yml:external-proxy/opencloud.yml:external-proxy/collabora.yml
# Keycloak Shared User Directory
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml
# Combined with thumbnails/imagor.yml this also needs EXCLUDE_ADDITIONAL_SERVICES, see below.
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml
#EXCLUDE_ADDITIONAL_SERVICES="idm,idp,thumbnails"
# External IDP
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/external-idp.yml
# Combined with thumbnails/imagor.yml this also needs EXCLUDE_ADDITIONAL_SERVICES, see below.
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/external-idp.yml
#EXCLUDE_ADDITIONAL_SERVICES="idm,idp,thumbnails"
# Euro Office with traefik and letsencrypt
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/euro-office.yml:traefik/opencloud.yml:traefik/euro-office.yml
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/euro-office.yml:traefik/opencloud.yml:traefik/euro-office.yml
# Euro Office with external proxy (Nginx, Caddy, etc.)
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/euro-office.yml:external-proxy/opencloud.yml:external-proxy/euro-office.yml
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:thumbnails/imagor.yml:weboffice/euro-office.yml:external-proxy/opencloud.yml:external-proxy/euro-office.yml
## Traefik Settings ##
# Note: Traefik is always enabled and can't be disabled.
@@ -89,7 +93,7 @@ TRAEFIK_LOG_LEVEL=
# Defaults to production if not set otherwise
OC_DOCKER_IMAGE=opencloudeu/opencloud-rolling
# The openCloud container version.
# Defaults to the pinned version. Use git pull to update.
# Defaults to the latest version-tag. Use git pull to update.
OC_DOCKER_TAG=
# The default id used in opencloud containers is 1000 for user and group.
# If you want to change the default, use the following variable and the format [UID]:[GID].
@@ -193,6 +197,17 @@ SMTP_INSECURE=
# IMPORTANT: Add any services to the startup list comma separated like "notifications,antivirus" etc.
START_ADDITIONAL_SERVICES=""
# Services that must not be started, comma separated.
# The compose files that replace a built-in service exclude it themselves, but docker
# compose only keeps the value of the last file in COMPOSE_FILE. When combining
# thumbnails/imagor.yml with idm/ldap-keycloak.yml or idm/external-idp.yml, list
# all of them here:
#EXCLUDE_ADDITIONAL_SERVICES="idm,idp,thumbnails"
# Without it the order in COMPOSE_FILE decides. Keep thumbnails/imagor.yml before the
# idm file, as in the examples above: then only the idle built-in thumbnails service
# keeps running. The other way round idm and idp are started again, next to Keycloak
# or the external IdP.
## Default Enabled Services ##
@@ -202,46 +217,37 @@ START_ADDITIONAL_SERVICES=""
# Enable it by adding the following to the COMPOSE_FILE variable:
# search/tika.yml or by using the following command:
# docker compose -f docker-compose.yml -f search/tika.yml up -d
# Docker image to use for the Tika container. Defaults to "apache/tika".
TIKA_DOCKER_IMAGE=
# Docker tag to pull for the Tika container.
# Defaults to the pinned version. Use git pull to update.
TIKA_DOCKER_TAG=
# The image variant, appended to the tag.
# The default base variant is recommended for most use cases as it provides core text extraction
# Set the desired docker image tag or digest.
# Defaults to "apache/tika:latest"
# The slim variant is recommended for most use cases as it provides core text extraction
# functionality with a smaller image size and faster startup time.
# Only set this to "full" if you need specialized features
# Only use the full variant (apache/tika:latest-full) if you need specialized features
# like advanced OCR or specific image processing capabilities.
TIKA_DOCKER_VARIANT=
### OpenSearch Search Engine ###
# OpenSearch replaces the embedded bleve search index.
# Enable it by adding search/opensearch.yml to the COMPOSE_FILE variable or by
# using the following command:
# docker compose -f docker-compose.yml -f search/opensearch.yml up -d
# Docker image to use for the OpenSearch container. Defaults to "opensearchproject/opensearch".
OPENSEARCH_DOCKER_IMAGE=
# Docker tag to pull for the OpenSearch container.
# Defaults to the pinned version. Use git pull to update.
OPENSEARCH_DOCKER_TAG=
TIKA_IMAGE=
### imagor Preview Generator ###
# imagor renders previews through libvips, which reads formats the built-in
# generator does not, heic, heif and avif among them.
# Needs OpenCloud 9.0.0 or newer.
# Enable it by adding thumbnails/imagor.yml to the COMPOSE_FILE variable or by
# using the following command:
# Enable it by adding thumbnails/imagor.yml to the COMPOSE_FILE variable, which all
# examples above do, or by using the following command:
# docker compose -f docker-compose.yml -f thumbnails/imagor.yml up -d
# imagor then makes all thumbnails and the built-in thumbnails service is not started.
# Docker image to use for the imagor container. Defaults to "shumc/imagor".
# "ghcr.io/cshum/imagor-magick" adds ImageMagick for formats libvips does not read,
# PSD, XCF and BMP among them. Slower, more memory and a larger attack surface,
# imagor recommends the standard image for most setups.
IMAGOR_DOCKER_IMAGE=
# Docker tag to pull for the imagor container.
# Defaults to the pinned version. Use git pull to update.
IMAGOR_DOCKER_TAG=
# Largest source image imagor accepts, in bytes. Defaults to "50000000".
#IMAGOR_DOCKER_IMAGE=
# Docker tag to pull for the imagor container. Defaults to "1.10.4".
#IMAGOR_DOCKER_TAG=
# Largest source image a thumbnail is made of, in bytes. Used by OpenCloud and imagor,
# so both refuse the same files. Defaults to "50000000".
#IMAGOR_MAX_SOURCE_SIZE=
# Largest width, height and number of animation frames of a source image.
# Default to "7680", "7680" and "100", the limits of the built-in thumbnails service.
#IMAGOR_MAX_WIDTH=
#IMAGOR_MAX_HEIGHT=
#IMAGOR_MAX_ANIMATION_FRAMES=
# Mime types previews are announced and attempted for on top of the built-in list,
# comma separated. A type imagor cannot read answers 404.
# Defaults to "image/heic,image/heif,image/avif,image/heic-sequence,image/heif-sequence".
@@ -291,7 +297,7 @@ EURO_OFFICE_JWT_SECRET=
# Defaults to "ghcr.io/euro-office/documentserver"
EURO_OFFICE_DOCKER_IMAGE=
# Euro Office Docker tag.
# Defaults to the pinned digest. Use git pull to update.
# Defaults to "latest"
EURO_OFFICE_DOCKER_TAG=
@@ -306,10 +312,8 @@ EURO_OFFICE_DOCKER_TAG=
# Usable modes: partial, skip.
# Defaults to "partial"
#ANTIVIRUS_MAX_SCAN_SIZE_MODE=
# Docker image to use for the ClamAV container. Defaults to "clamav/clamav".
CLAMAV_DOCKER_IMAGE=
# Image version of the ClamAV container.
# Defaults to the pinned version. Use git pull to update.
# Defaults to "latest"
CLAMAV_DOCKER_TAG=
@@ -371,11 +375,6 @@ PROXY_ROLE_ASSIGNMENT_DRIVER=
# Set to "true" when using PROXY_ROLE_ASSIGNMENT_DRIVER=default
GRAPH_ASSIGN_DEFAULT_USER_ROLE=
# If you want to use a keycloak for local testing, you can use testing/external-keycloak.yml and testing/ldap-manager.yml
# Docker image to use for the LDAP manager container. Defaults to "phpldapadmin/phpldapadmin".
LDAP_MANAGER_DOCKER_IMAGE=
# Docker tag to pull for the LDAP manager container.
# Defaults to the pinned version. Use git pull to update.
LDAP_MANAGER_DOCKER_TAG=
# Domain of your Identity Provider.
IDP_DOMAIN=
# IdP Issuer URL, which is used to identify the Identity Provider.
@@ -434,11 +433,10 @@ KC_DB_PASSWORD=
# The yjs server relays updates between users editing the same file.
# It is enabled by default via yjs/yjs.yml in the COMPOSE_FILE variable.
# The browser reaches it under https://{OC_DOMAIN}/yjs, the OpenCloud proxy forwards it.
# Docker image to use for the yjs container. Defaults to "opencloudeu/yjs".
YJS_DOCKER_IMAGE=
# Docker image to use for the yjs container.
#YJS_DOCKER_IMAGE=opencloudeu/yjs
# Docker tag to pull for the yjs container.
# Defaults to the pinned version. Use git pull to update.
YJS_DOCKER_TAG=
#YJS_DOCKER_TAG=
# URL the yjs server uses to reach OpenCloud. Defaults to "http://opencloud:9200".
#YJS_OPENCLOUD_URL=
# Grace period in milliseconds for a graceful shutdown. Defaults to "15000".
@@ -460,11 +458,10 @@ YJS_DOCKER_TAG=
# Radicale is a small open-source CalDAV (calendars, to-do lists) and CardDAV (contacts) server.
# When enabled OpenCloud is configured as a reverse proxy for Radicale, providing all authenticated
# OpenCloud users access to a Personal Calendar and Addressbook
# Docker image to use for the Radicale Container. Defaults to "opencloudeu/radicale".
RADICALE_DOCKER_IMAGE=
# Docker image to use for the Radicale Container
#RADICALE_DOCKER_IMAGE=opencloudeu/radicale
# Docker tag to pull for the Radicale Container
# Defaults to the pinned version. Use git pull to update.
RADICALE_DOCKER_TAG=
#RADICALE_DOCKER_TAG=latest
# Define the storage location for the Radicale data. Set the path to a local path.
# Ensure that the configuration and data directories are owned by the user and group with ID 1000:1000.
# This matches the default user inside the container and avoids permission issues when accessing files.

View File

@@ -1,66 +0,0 @@
# AGENTS.md
Compose files for running OpenCloud. Each module is one compose file, modules are combined through `COMPOSE_FILE` (see `README.md`).
## Adding a Docker image
Every new image follows one schema. Renovate detects it from the schema alone, there is no annotation and no file list to maintain.
1. Write the image line with an image and a tag variable, both with a default:
```yaml
image: ${<NAME>_DOCKER_IMAGE:-<registry/image>}:${<NAME>_DOCKER_TAG:-<version>}
```
`<version>` is an exact released version, usually the one `latest` points to today. An image without version tags is pinned by the digest of its multi-arch index (`docker buildx imagetools inspect <image>:latest`):
```yaml
image: ${<NAME>_DOCKER_IMAGE:-<registry/image>}:${<NAME>_DOCKER_TAG:-latest@sha256:<digest>}
```
2. Document both variables in `.env.example`, uncommented and empty, in this wording:
```sh
# Docker image to use for the <name> container. Defaults to "<registry/image>".
<NAME>_DOCKER_IMAGE=
# Docker tag to pull for the <name> container.
# Defaults to the pinned version. Use git pull to update.
<NAME>_DOCKER_TAG=
```
The version number lives only in the compose file. `.env.example` and `README.md` say "pinned version", because renovate bumps the compose file and a copied number goes stale.
`.env.example` is the reference for variables. The table in `README.md` is a selection: add a row there only when asked.
3. Check compose. Done when the pinned image is printed and there is no warning:
```sh
docker compose --env-file .env.example -f docker-compose.yml -f <module>.yml config | grep image:
```
4. Check renovate. Done when the output shows the image with its `depName` and `currentValue`:
```sh
docker run --rm -v "$PWD:/usr/src/app" -e LOG_LEVEL=debug renovate/renovate --platform=local 2>&1 \
| grep -A3 '"depName": "<registry/image>"'
```
Renovate finds files through `git ls-files`: `git add` a new compose file before the run. To see an update proposal, pin an older version for the run and widen the grep to `-A12`.
## How renovate treats images
- **Detection:** one pattern in `renovate.json` (`customManagers`) matches the schema above in every yaml file and reads name, tag and digest from the `image:` line. Images written as a fixed string (`traefik:v3.7.18`) are older and handled by renovate's `docker-compose` manager.
- **Automerge:** patch updates are merged automatically for every image. An image that needs a manual merge gets its own rule by package name, placed after the automerge rule:
```json
{ "matchPackageNames": ["<registry/image>"], "automerge": false }
```
- **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.
## Removing or renaming a variable
Compose ignores a variable it no longer reads, so an old `.env` fails silently. Make it fail loudly: add the old name to `x-removed-variables` in the module's compose file, like `TIKA_IMAGE` in `search/tika.yml`. Compose then aborts with the message when the old variable is still set.

View File

@@ -1 +0,0 @@
@AGENTS.md

View File

@@ -189,24 +189,18 @@ This setup includes:
- Support for documents, PDFs, images, and other file types
**Tika Image Variant:**
By default, OpenCloud Compose uses the base variant of `apache/tika` which provides:
By default, OpenCloud Compose uses `apache/tika:latest` which provides:
- Smaller image size (~300MB vs ~1.2GB for the full variant)
- Faster container startup and deployment
- Core text extraction functionality for common document formats (PDF, Office docs, text files, etc.)
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.
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 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 and Docker Compose 2.24.4 or newer, which understands the `!override` tag.
> **Version Requirement**: This setup needs OpenCloud 9.0.0 or newer.
Using `-f` flags:
```bash
@@ -219,11 +213,14 @@ COMPOSE_FILE=docker-compose.yml:thumbnails/imagor.yml:traefik/opencloud.yml
```
This setup includes:
- imagor as the preview generator OpenCloud posts source images to, replacing the `thumbnails` container, which is scaled to 0
- imagor as the preview generator OpenCloud posts source images to
- Previews for heic, heif and avif files, including image sequences, in the file list and the preview app
- imagor on an internal network without a route to the outside, with a read-only filesystem and no capabilities
- imagor makes all thumbnails, the built-in thumbnails service is not started
Set `THUMBNAILS_ADDITIONAL_SOURCE_TYPES` in `.env` to announce previews for further formats imagor reads.
Set `THUMBNAILS_ADDITIONAL_SOURCE_TYPES` in `.env` to announce previews for further formats imagor reads. All `COMPOSE_FILE` examples in `.env.example` include `thumbnails/imagor.yml`.
`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`. Without it the order in `COMPOSE_FILE` decides, so keep `thumbnails/imagor.yml` before the `idm/` file: then only the idle built-in thumbnails service keeps running. The other way round idm and idp are started again next to Keycloak or the external IdP.
**ImageMagick Variant:**
libvips does not read PSD, XCF, BMP and some legacy formats. The `ghcr.io/cshum/imagor-magick` image adds ImageMagick for those. It is slower, needs more memory and widens the attack surface, so imagor recommends the standard image for most setups. To use it anyway, set `IMAGOR_DOCKER_IMAGE=ghcr.io/cshum/imagor-magick` in your `.env` file and add the mime types to `THUMBNAILS_ADDITIONAL_SOURCE_TYPES`.
@@ -445,7 +442,7 @@ Key variables:
| `COMPOSE_FILE` | Colon-separated list of compose files to use | (commented out) |
| `OC_DOMAIN` | OpenCloud domain | cloud.opencloud.test |
| `INITIAL_ADMIN_PASSWORD ` | OpenCloud password for the admin user | (no value) |
| `OC_DOCKER_TAG` | OpenCloud image tag | (pinned version) |
| `OC_DOCKER_TAG` | OpenCloud image tag | latest |
| `OC_CONFIG_DIR` | Config directory path | (Docker volume) |
| `OC_DATA_DIR` | Data directory path | (Docker volume) |
| `INSECURE` | Skip certificate validation | true |
@@ -453,12 +450,11 @@ Key variables:
| `EURO_OFFICE_DOMAIN` | Euro Office document server domain | euro-office.opencloud.test |
| `EURO_OFFICE_JWT_SECRET` | JWT secret for Euro Office (change for production!) | changeme |
| `EURO_OFFICE_DOCKER_IMAGE` | Euro Office Docker image | ghcr.io/euro-office/documentserver |
| `EURO_OFFICE_DOCKER_TAG` | Euro Office Docker tag | (pinned digest) |
| `TIKA_DOCKER_IMAGE` | Apache Tika Docker image | apache/tika |
| `TIKA_DOCKER_TAG` | Apache Tika Docker tag | (pinned version) |
| `TIKA_DOCKER_VARIANT` | Apache Tika image variant, `full` for the full image | (base variant) |
| `EURO_OFFICE_DOCKER_TAG` | Euro Office Docker tag | latest |
| `TIKA_IMAGE` | Apache Tika image tag | apache/tika:slim |
| `IMAGOR_DOCKER_IMAGE` | imagor Docker image | shumc/imagor |
| `IMAGOR_DOCKER_TAG` | imagor Docker tag | (pinned version) |
| `IMAGOR_DOCKER_TAG` | imagor Docker tag | 1.10.4 |
| `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 |

View File

@@ -16,7 +16,7 @@ services:
clamav:
condition: service_healthy
clamav:
image: ${CLAMAV_DOCKER_IMAGE:-clamav/clamav}:${CLAMAV_DOCKER_TAG:-1.5.5}
image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest}
environment:
# Accepts a number with optional K, M or G suffix. Must be greater or equal to ANTIVIRUS_MAX_SCAN_SIZE above.
# K = KiB (1024), M = MiB (1024 * 1024), G = GiB (1024 * 1024 * 1024)

View File

@@ -1,13 +1,13 @@
---
services:
opencloud:
image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-9.2.0}
# renovate: depName=opencloudeu/opencloud-rolling
image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-9.1.0}
# changelog: https://github.com/opencloud-eu/opencloud/tree/main/changelog
# release notes: https://docs.opencloud.eu/opencloud_release_notes.html
user: ${OC_CONTAINER_UID_GID:-1000:1000}
networks:
opencloud-net:
thumbnails-net:
entrypoint:
- /bin/sh
# run opencloud init to initialize a configuration file with random secrets
@@ -66,9 +66,6 @@ services:
# with X being a number larger than 10240000. You can set a custom limit, for example 20480000.
# Keep in mind that doubling the GRPC_MAX_RECEIVED_MESSAGE_SIZE limit may also double your peak RAM usage.
OC_GRPC_MAX_RECEIVED_MESSAGE_SIZE:
# thumbnails are made by the thumbnails container below, webdav posts the images there
OC_EXCLUDE_RUN_SERVICES: thumbnails
WEBDAV_THUMBNAILS_GENERATOR_URL: http://thumbnails:9186
volumes:
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml
- ./config/opencloud/apps.yaml:/etc/opencloud/apps.yaml
@@ -77,45 +74,6 @@ services:
- ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud
- ${OC_DATA_DIR:-opencloud-data}:/var/lib/opencloud
- ${OC_APPS_DIR:-./config/opencloud/apps}:/var/lib/opencloud/web/assets/apps
depends_on:
thumbnails:
condition: service_healthy
logging:
driver: ${LOG_DRIVER:-local}
restart: always
# The built-in thumbnails service runs in its own container, so decoding untrusted
# images happens without access to the config, the secrets or the data of OpenCloud.
# It has no authentication, so it is only reachable on the internal thumbnails-net.
# Do NOT publish a port or expose it via the reverse proxy.
thumbnails:
# same image as opencloud, keep both tags in sync
# renovate: depName=opencloudeu/opencloud-rolling
image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-9.1.0}
user: ${OC_CONTAINER_UID_GID:-1000:1000}
command: ["thumbnails", "server"]
environment:
THUMBNAILS_HTTP_ADDR: 0.0.0.0:9186
# webdav finds the service by WEBDAV_THUMBNAILS_GENERATOR_URL, there is no nats to register with
MICRO_REGISTRY: memory
OC_LOG_LEVEL: ${LOG_LEVEL:-info}
OC_LOG_COLOR: "${LOG_PRETTY:-false}"
OC_LOG_PRETTY: "${LOG_PRETTY:-false}"
networks:
thumbnails-net:
read_only: true
tmpfs:
- /tmp:size=256m
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "opencloud", "thumbnails", "health"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
logging:
driver: ${LOG_DRIVER:-local}
restart: always
@@ -126,5 +84,3 @@ volumes:
networks:
opencloud-net:
thumbnails-net:
internal: true

View File

@@ -28,8 +28,9 @@ services:
PROXY_ROLE_ASSIGNMENT_DRIVER: ${PROXY_ROLE_ASSIGNMENT_DRIVER:-oidc}
OC_OIDC_ISSUER: ${IDP_ISSUER_URL:-https://keycloak.opencloud.test/realms/openCloud}
# This specifies to start all services except idm and idp. These are replaced by external services.
# thumbnails runs in its own container, see docker-compose.yml
OC_EXCLUDE_RUN_SERVICES: idm,idp,thumbnails
# compose takes this value from the last file in COMPOSE_FILE, so when combining with
# thumbnails/imagor.yml set EXCLUDE_ADDITIONAL_SERVICES=idm,idp,thumbnails
OC_EXCLUDE_RUN_SERVICES: ${EXCLUDE_ADDITIONAL_SERVICES:-}${EXCLUDE_ADDITIONAL_SERVICES:+,}idm,idp
# IdP specific configuration for auto-provisioning
OC_LDAP_SERVER_WRITE_ENABLED: "true"
PROXY_AUTOPROVISION_ACCOUNTS: "true"

View File

@@ -19,8 +19,9 @@ services:
FRONTEND_READONLY_USER_ATTRIBUTES: "user.onPremisesSamAccountName,user.displayName,user.mail,user.passwordProfile,user.accountEnabled,user.appRoleAssignments"
OC_LDAP_SERVER_WRITE_ENABLED: "false" # the ldap is managed by Keycloak, so it is not writable by OpenCloud
# This specifies to start all services except idm and idp. These are replaced by external services.
# thumbnails runs in its own container, see docker-compose.yml
OC_EXCLUDE_RUN_SERVICES: idm,idp,thumbnails
# compose takes this value from the last file in COMPOSE_FILE, so when combining with
# thumbnails/imagor.yml set EXCLUDE_ADDITIONAL_SERVICES=idm,idp,thumbnails
OC_EXCLUDE_RUN_SERVICES: ${EXCLUDE_ADDITIONAL_SERVICES:-}${EXCLUDE_ADDITIONAL_SERVICES:+,}idm,idp
# Keycloak IDP specific configuration
PROXY_AUTOPROVISION_ACCOUNTS: "false"
PROXY_ROLE_ASSIGNMENT_DRIVER: "oidc"

View File

@@ -7,3 +7,7 @@ services:
# if OpenCloud runs as a single process, all <debug>/metrics endpoints
# will expose the same metrics, so it's sufficient to query one endpoint
PROXY_DEBUG_ADDR: 0.0.0.0:9205
networks:
opencloud-net:
external: true

View File

@@ -5,7 +5,7 @@ services:
# external sites needs to have additional routes configured in the proxy
- ./config/opencloud/proxy.yaml:/etc/opencloud/proxy.yaml
radicale:
image: ${RADICALE_DOCKER_IMAGE:-opencloudeu/radicale}:${RADICALE_DOCKER_TAG:-v3.9.2}
image: ${RADICALE_DOCKER_IMAGE:-opencloudeu/radicale}:${RADICALE_DOCKER_TAG:-latest}
user: ${OC_CONTAINER_UID_GID:-1000:1000}
networks:
opencloud-net:

View File

@@ -3,25 +3,22 @@
"dependencyDashboard": true,
"platformAutomerge": true,
"enabledManagers": ["docker-compose", "custom.regex"],
"baseBranchPatterns": ["main", "stable-4.0", "stable-7.2", "stable-9.1"],
"baseBranchPatterns": ["main", "stable-4.0", "stable-7.2"],
"packageRules": [
{
"matchManagers": ["docker-compose", "custom.regex"],
"labels": ["Type:Dependencies", "Bot:Renovate"]
},
{
"matchManagers": ["docker-compose"],
"matchUpdateTypes": ["patch"],
"automerge": true
},
{
"matchBaseBranches": ["stable-4.0", "stable-7.2", "stable-9.1"],
"matchBaseBranches": ["stable-4.0", "stable-7.2"],
"matchUpdateTypes": ["major", "minor"],
"enabled": false
},
{
"matchPackageNames": ["ghcr.io/euro-office/documentserver"],
"schedule": ["* 0-3 * * 1"]
},
{
"matchPackageNames": ["postgres"],
"matchManagers": ["docker-compose"],
@@ -34,9 +31,14 @@
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/.+\\.ya?ml$/"],
"managerFilePatterns": [
"/^docker-compose\\.yml$/",
"/^weboffice\\/collabora\\.yml$/",
"/^yjs\\/yjs\\.yml$/",
"/^thumbnails\\/imagor\\.yml$/"
],
"matchStrings": [
"image: \\$\\{[^}:]+:-(?<depName>[^}]+)\\}:\\$\\{[^}:]+:-(?<currentValue>[^@}]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\\}"
"# renovate: depName=(?<depName>[^\\s]+)\\n\\s+image: \\$\\{[^}]+\\}:\\$\\{[^}]+-(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)\\}"
],
"datasourceTemplate": "docker"
}

View File

@@ -12,7 +12,7 @@ services:
condition: service_healthy
opensearch:
image: ${OPENSEARCH_DOCKER_IMAGE:-opensearchproject/opensearch}:${OPENSEARCH_DOCKER_TAG:-3.10.1}
image: ${OPENSEARCH_DOCKER_IMAGE:-opensearchproject/opensearch}:${OPENSEARCH_DOCKER_TAG:-2.19.5}
environment:
discovery.type: single-node
bootstrap.memory_lock: "true"

View File

@@ -1,9 +1,7 @@
---
x-removed-variables:
TIKA_IMAGE: "${TIKA_IMAGE:+${TIKA_IMAGE_REMOVED:?TIKA_IMAGE (image:tag) is now TIKA_DOCKER_IMAGE and TIKA_DOCKER_TAG}}"
services:
tika:
image: ${TIKA_DOCKER_IMAGE:-apache/tika}:${TIKA_DOCKER_TAG:-4.2.0}${TIKA_DOCKER_VARIANT:+-}${TIKA_DOCKER_VARIANT:-}
image: ${TIKA_IMAGE:-apache/tika:latest}
# Using the base variant for smaller image size and faster startup
# The base variant includes core functionality for text extraction
# Full variant is only needed for specialized OCR/image processing

View File

@@ -4,7 +4,7 @@
# This is not a production ready setup.
services:
ldap-manager:
image: ${LDAP_MANAGER_DOCKER_IMAGE:-phpldapadmin/phpldapadmin}:${LDAP_MANAGER_DOCKER_TAG:-2.3.12}
image: phpldapadmin/phpldapadmin:latest
networks:
opencloud-net:
environment:

View File

@@ -1,15 +1,18 @@
---
services:
imagor:
image: ${IMAGOR_DOCKER_IMAGE:-shumc/imagor}:${IMAGOR_DOCKER_TAG:-1.10.5}
# renovate: depName=shumc/imagor
image: ${IMAGOR_DOCKER_IMAGE:-shumc/imagor}:${IMAGOR_DOCKER_TAG:-1.10.4}
environment:
IMAGOR_UNSAFE: "true"
UPLOAD_LOADER_ENABLE: "true"
UPLOAD_LOADER_MAX_ALLOWED_SIZE: ${IMAGOR_MAX_SOURCE_SIZE:-50000000}
# quoted, an unquoted large number reaches imagor as 5e+07 which it cannot parse
UPLOAD_LOADER_MAX_ALLOWED_SIZE: "${IMAGOR_MAX_SOURCE_SIZE:-50000000}"
HTTP_LOADER_DISABLE: "true"
VIPS_MAX_WIDTH: "7680"
VIPS_MAX_HEIGHT: "7680"
VIPS_MAX_ANIMATION_FRAMES: "100"
# the limits of the built-in thumbnails service
VIPS_MAX_WIDTH: "${IMAGOR_MAX_WIDTH:-7680}"
VIPS_MAX_HEIGHT: "${IMAGOR_MAX_HEIGHT:-7680}"
VIPS_MAX_ANIMATION_FRAMES: "${IMAGOR_MAX_ANIMATION_FRAMES:-100}"
networks:
imagor-net:
read_only: true
@@ -33,19 +36,18 @@ services:
environment:
WEBDAV_THUMBNAILS_GENERATOR_URL: http://imagor:8000
OC_THUMBNAILS_ADDITIONAL_SOURCE_TYPES: ${THUMBNAILS_ADDITIONAL_SOURCE_TYPES:-image/heic,image/heif,image/avif,image/heic-sequence,image/heif-sequence}
# in bytes, the same value is handed to imagor above so both refuse the same files
OC_THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE: "${IMAGOR_MAX_SOURCE_SIZE:-50000000}"
# the built-in thumbnails service is not needed when imagor makes the thumbnails
# compose takes this value from the last file in COMPOSE_FILE, so when combining with
# idm/ldap-keycloak.yml or idm/external-idp.yml set EXCLUDE_ADDITIONAL_SERVICES=idm,idp,thumbnails
OC_EXCLUDE_RUN_SERVICES: ${EXCLUDE_ADDITIONAL_SERVICES:-}${EXCLUDE_ADDITIONAL_SERVICES:+,}thumbnails
networks:
imagor-net:
# replaces the thumbnails container, so opencloud must not wait for it
depends_on: !override
depends_on:
imagor:
condition: service_healthy
# imagor replaces the built-in thumbnails container. Scaling it to 0 also stops
# it when imagor is added to an existing deployment.
thumbnails:
deploy:
replicas: 0
networks:
imagor-net:
internal: true

View File

@@ -17,7 +17,7 @@ services:
- "traefik.http.services.opencloud.loadbalancer.server.port=9200"
- "traefik.http.routers.opencloud.${TRAEFIK_SERVICES_TLS_CONFIG}"
traefik:
image: traefik:v3.8.0
image: traefik:v3.7.19
# release notes: https://github.com/traefik/traefik/releases
user: ${TRAEFIK_CONTAINER_UID_GID:-0:0}
networks:

View File

@@ -50,7 +50,7 @@ services:
restart: "no"
collabora:
image: collabora/code:26.04.6.2.1
image: collabora/code:26.04.6.1.1
# release notes: https://www.collaboraonline.com/release-notes/
networks:
opencloud-net:

View File

@@ -24,7 +24,7 @@ services:
- ./config/euro-office/app-registry.yaml:/etc/opencloud/app-registry.yaml
euro-office:
image: ${EURO_OFFICE_DOCKER_IMAGE:-ghcr.io/euro-office/documentserver}:${EURO_OFFICE_DOCKER_TAG:-latest@sha256:2fadc1b3dc99250d6576fc0c0f34349db6725b752b08e91db9831fbb803fc5c2}
image: ${EURO_OFFICE_DOCKER_IMAGE:-ghcr.io/euro-office/documentserver}:${EURO_OFFICE_DOCKER_TAG:-latest}
# changelog https://github.com/EURO-office/DocumentServer/releases
networks:
opencloud-net:

View File

@@ -7,6 +7,7 @@ services:
# the /yjs route is configured in the proxy
- ./config/opencloud/proxy.yaml:/etc/opencloud/proxy.yaml
yjs:
# renovate: depName=opencloudeu/yjs
image: ${YJS_DOCKER_IMAGE:-opencloudeu/yjs}:${YJS_DOCKER_TAG:-1.1.1}
user: ${OC_CONTAINER_UID_GID:-1000:1000}
networks: