Use cron.sh for the cron container
This commit is contained in:
parent
71380e0a92
commit
8db861d67f
15
stack.yml
15
stack.yml
@ -31,20 +31,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud:/var/www/html
|
- nextcloud:/var/www/html
|
||||||
user: www-data
|
entrypoint: /cron.sh
|
||||||
entrypoint: |
|
|
||||||
bash -c 'bash -s <<EOF
|
|
||||||
trap "break;exit" SIGHUP SIGINT SIGTERM
|
|
||||||
|
|
||||||
while [ ! -f /var/www/html/config/config.php ]; do
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
php -f /var/www/html/cron.php
|
|
||||||
sleep 15m
|
|
||||||
done
|
|
||||||
EOF'
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user