mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
Add CRON_MEMORY_LIMIT (#116)
This commit is contained in:
parent
319ca5b4a3
commit
4d8fa9ed40
@ -10,6 +10,7 @@ ENV UID=991 GID=991 \
|
||||
OPCACHE_MEM_SIZE=128 \
|
||||
REDIS_MAX_MEMORY=64mb \
|
||||
CRON_PERIOD=15m \
|
||||
CRON_MEMORY_LIMIT=1g \
|
||||
TZ=Etc/UTC \
|
||||
DB_TYPE=sqlite3 \
|
||||
ADMIN_USER=admin \
|
||||
|
@ -4,6 +4,7 @@ sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/ph
|
||||
-e "s/<APC_SHM_SIZE>/$APC_SHM_SIZE/g" /etc/php7/conf.d/apcu.ini \
|
||||
-e "s/<OPCACHE_MEM_SIZE>/$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini \
|
||||
-e "s/<REDIS_MAX_MEMORY>/$REDIS_MAX_MEMORY/g" /etc/redis.conf \
|
||||
-e "s/<CRON_MEMORY_LIMIT>/$CRON_MEMORY_LIMIT/g" /etc/s6.d/cron/run
|
||||
-e "s/<CRON_PERIOD>/$CRON_PERIOD/g" /etc/s6.d/cron/run
|
||||
|
||||
# Put the configuration and apps into volumes
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
while true; do
|
||||
php7 -f /nextcloud/cron.php
|
||||
php7 -d memory_limit=<CRON_MEMORY_LIMIT> -f /nextcloud/cron.php
|
||||
sleep <CRON_PERIOD>
|
||||
done
|
||||
|
@ -59,6 +59,7 @@ Other tags than `daily` are built weekly. For security reasons, you should occas
|
||||
- **OPCACHE_MEM_SIZE** : opcache memory size in megabytes *(default : 128)*
|
||||
- **REDIS_MAX_MEMORY** : memory limit for Redis *(default : 64mb)*
|
||||
- **CRON_PERIOD** : time interval between two cron tasks *(default : 15m)*
|
||||
- **CRON_MEMORY_LIMIT** : memory limit for PHP when executing cronjobs *(default : 1024m)*
|
||||
- **TZ** : the system/log timezone *(default : Etc/UTC)*
|
||||
- **ADMIN_USER** : username of the admin account *(default : admin)*
|
||||
- **ADMIN_PASSWORD** : password of the admin account *(default : admin)*
|
||||
|
Loading…
x
Reference in New Issue
Block a user