Nextcloud: run cronejob every minute

This commit is contained in:
Florian Zirker 2023-06-16 08:37:08 +02:00
parent 0520815da1
commit fc106060b7
3 changed files with 2 additions and 9 deletions

View file

@ -9,3 +9,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ocrmypdf tesseract-ocr-deu \
procps \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/spool/cron/crontabs; echo '* * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data

View file

@ -1,3 +0,0 @@
*/5 * * * * php -f /var/www/html/cron.php

View file

@ -72,12 +72,6 @@ services:
volumes:
- ${VOLUMES_PATH}/nextcloud/html:/var/www/html
- ${VOLUMES_PATH}/nextcloud/data:/var/www/html/data
# If I mount my crontab into the container crond is not working any more :(
# docker log should print 11110001 lines
# https://github.com/nextcloud/docker/issues/1775
# https://github.com/nextcloud/docker/issues/1695
# build own cron image?
# - $PWD/crontab:/var/spool/cron/crontabs/www-data
entrypoint: /cron.sh
depends_on:
- db