From 8c5a109eb0ebcfdbd6f653fc3e68924fc034bfc8 Mon Sep 17 00:00:00 2001 From: Adasauce Date: Thu, 19 Sep 2019 11:32:26 -0300 Subject: [PATCH] Add a 'thumbnailer container' uses the same method as the cron container, runs every 60 seconds. fixed an issue with the original cron scripts outputting the same date over and over. Closes #1 --- docker-compose.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index bd3a34b..c671af2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,11 +46,29 @@ services: while /bin/true; do echo Starting cron su -s "/bin/sh" -c "/usr/local/bin/php /var/www/html/cron.php" www-data - echo $$(date) - Running cron finished + echo \$$(date) - Running cron finished sleep 900 done EOF' + thumbnailer: + image: nextcloud:fpm-alpine + restart: always + volumes: + - nextcloud:/var/www/html + depends_on: + - app + entrypoint: | + sh -c 'sh -s <