diff options
Diffstat (limited to 'roles/elevate/media/templates')
-rw-r--r-- | roles/elevate/media/templates/nextcloud-rescan.timer.j2 | 2 | ||||
-rw-r--r-- | roles/elevate/media/templates/nextcloud.service.j2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/elevate/media/templates/nextcloud-rescan.timer.j2 b/roles/elevate/media/templates/nextcloud-rescan.timer.j2 index 36d36322..099a975d 100644 --- a/roles/elevate/media/templates/nextcloud-rescan.timer.j2 +++ b/roles/elevate/media/templates/nextcloud-rescan.timer.j2 @@ -2,7 +2,7 @@ Description=Nextcloud files:scan job timer [Timer] -OnCalendar=*:0/5 +OnCalendar=*:0/15 [Install] WantedBy=timers.target diff --git a/roles/elevate/media/templates/nextcloud.service.j2 b/roles/elevate/media/templates/nextcloud.service.j2 index 66395fe9..d03ecad8 100644 --- a/roles/elevate/media/templates/nextcloud.service.j2 +++ b/roles/elevate/media/templates/nextcloud.service.j2 @@ -4,7 +4,7 @@ After=docker.service Requires=docker.service [Service] -ExecStart=/usr/bin/systemd-docker --cgroups name=systemd run --rm --network host --name %n -v /srv/nextcloud/config/nextcloud-fpm.conf:/usr/local/etc/php-fpm.d/zzzzz.conf -v /srv/nextcloud/config/nextcloud:/var/www/html/config -v /srv/ncdata/nextcloud:/var/www/html/data -v /srv/smbdata/share:/srv/external/share -v /srv/nextcloud/www:/var/www/html nextcloud:{{ inventory_hostname }} +ExecStart=/usr/bin/systemd-docker --cgroups name=systemd run --rm --network host --name %n -m {{ (ansible_memtotal_mb * 0.3) | round | int }}M -v /srv/nextcloud/config/nextcloud-fpm.conf:/usr/local/etc/php-fpm.d/zzzzz.conf -v /srv/nextcloud/config/nextcloud:/var/www/html/config -v /srv/ncdata/nextcloud:/var/www/html/data -v /srv/smbdata/share:/srv/external/share -v /srv/nextcloud/www:/var/www/html nextcloud:{{ inventory_hostname }} Restart=always RestartSec=10 Type=notify |