From 2a9d9b80d8250794e8e19c76a8b1c561911ef528 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Tue, 3 Dec 2019 19:23:41 +0100 Subject: [PATCH] Added crontab for elasticsearch. --- docker-compose.yml | 3 ++- www-data | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 www-data diff --git a/docker-compose.yml b/docker-compose.yml index cdf5687..991efa4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: nextcloud: container_name: nextcloud-full - image: nextcloud:15.0.8 + image: nextcloud:16.0.6 build: ./docker/.examples/dockerfiles/full/apache/ restart: always networks: @@ -15,6 +15,7 @@ services: - "80/tcp" volumes: - nextcloud:/var/www/html:Z + - ./www-data:/var/spool/cron/crontabs/www-data networks: diff --git a/www-data b/www-data new file mode 100644 index 0000000..5c11678 --- /dev/null +++ b/www-data @@ -0,0 +1,2 @@ +*/15 * * * * php -f /var/www/html/cron.php +*/1 * * * * pgrep -af fulltextsearch | grep -qv grep || { php /var/www/html/occ fulltextsearch:index -q; php /var/www/html/occ fulltextsearch:live -q; }