Nextcloud: run cronejob every minute
This commit is contained in:
parent
0520815da1
commit
fc106060b7
3 changed files with 2 additions and 9 deletions
|
@ -9,3 +9,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ocrmypdf tesseract-ocr-deu \
|
ocrmypdf tesseract-ocr-deu \
|
||||||
procps \
|
procps \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
*/5 * * * * php -f /var/www/html/cron.php
|
|
||||||
|
|
||||||
|
|
|
@ -72,12 +72,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUMES_PATH}/nextcloud/html:/var/www/html
|
- ${VOLUMES_PATH}/nextcloud/html:/var/www/html
|
||||||
- ${VOLUMES_PATH}/nextcloud/data:/var/www/html/data
|
- ${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
|
entrypoint: /cron.sh
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
Loading…
Reference in a new issue