From 36ff0fb5fa184121c6780f08e8062b347a165b39 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 28 Jan 2025 15:55:52 +0100 Subject: [PATCH] feat(nextcloud): Add imaginary container for thumbnails --- roles/nextcloud/templates/docker-stack.yml.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/roles/nextcloud/templates/docker-stack.yml.j2 b/roles/nextcloud/templates/docker-stack.yml.j2 index 36526bc..80f28fa 100644 --- a/roles/nextcloud/templates/docker-stack.yml.j2 +++ b/roles/nextcloud/templates/docker-stack.yml.j2 @@ -142,6 +142,24 @@ services: networks: - backend + # from https://okxo.de/speed-up-nextcloud-preview-generation-with-imaginary/ + # and https://github.com/nextcloud/all-in-one/tree/main/Containers/imaginary + imaginary: + image: nextcloud/aio-imaginary:latest + environment: + - PORT=9000 + healthcheck: + test: ["CMD", "/healthcheck.sh"] + interval: 1m + timeout: 10s + retries: 3 + start_period: 1m + command: -return-size -max-allowed-resolution 222.2 -concurrency 50 -enable-url-source -log-level debug + cap_add: + - CAP_SYS_NICE + networks: + - backend + # metrics: # image: telegraf # hostname: "${HOSTNAME:-vmi352583.contaboserver.net}"