Increase memory limit for cron

Re coop-cloud/nextcloud#41
This commit is contained in:
3wc 2024-05-07 19:30:49 -03:00
parent 019b71fde1
commit 4f1aaf5d1d
3 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,7 @@ export FPM_TUNE_VERSION=v5
export NGINX_CONF_VERSION=v6
export MY_CNF_VERSION=v5
export ENTRYPOINT_VERSION=v3
export CRONTAB_VERSION=v1
run_occ() {
su -p www-data -s /bin/sh -c "/var/www/html/occ $@"

View File

@ -113,6 +113,10 @@ services:
networks:
- internal
entrypoint: /cron.sh
configs:
- source: crontab
target: /var/spool/cron/crontabs/www-data
cache:
image: redis:7.2.4-alpine
@ -155,6 +159,9 @@ configs:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
crontab:
name: ${STACK_NAME}_crontab_${CRONTAB_VERSION}
file: crontab
networks:
proxy:

1
crontab Normal file
View File

@ -0,0 +1 @@
*/5 * * * * php -d memory_limit=1G -f /var/www/html/cron.php