Merge branch 'cronjob' of adasauce/nextcloud-docker into master

master
Thurloat 5 years ago committed by Gitea
commit 8c9c91e755
  1. 20
      docker-compose.yml

@ -46,11 +46,29 @@ services:
while /bin/true; do while /bin/true; do
echo Starting cron echo Starting cron
su -s "/bin/sh" -c "/usr/local/bin/php /var/www/html/cron.php" www-data 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 sleep 900
done done
EOF' EOF'
thumbnailer:
image: nextcloud:fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html
depends_on:
- app
entrypoint: |
sh -c 'sh -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while /bin/true; do
echo Starting thumbnail cron
su -s "/bin/sh" -c "/usr/local/bin/php occ preview:pre-generate" www-data
echo \$$(date) - Running thumbnail cron finished
sleep 60
done
EOF'
proxy: proxy:
build: ./proxy build: ./proxy
restart: always restart: always

Loading…
Cancel
Save