36 lines
1.7 KiB
YAML
36 lines
1.7 KiB
YAML
# vim:ft=ansible:
|
|
- name: docker deploy nextcloud
|
|
docker_container:
|
|
name: nextcloud
|
|
image: nextcloud:30
|
|
env:
|
|
PHP_UPLOAD_LIMIT: 1024M
|
|
networks:
|
|
- name: web
|
|
aliases: [ "nextcloud" ]
|
|
volumes:
|
|
- /data/nextcloud/custom_apps:/var/www/html/custom_apps
|
|
- /data/nextcloud/config:/var/www/html/config
|
|
- /data/nextcloud/themes:/var/www/html/themes
|
|
- /data/nextcloud/data:/var/www/html/data
|
|
- /data/shared:/shared
|
|
tags: [ docker, nextcloud ]
|
|
# Vanilla Nextcloud cron
|
|
- name: assure nextcloud cron cronjob
|
|
ansible.builtin.cron: user=root name=nextcloud minute=*/5 job="docker exec --user www-data nextcloud php -f /var/www/html/cron.php"
|
|
tags: [ docker, nextcloud, cron ]
|
|
# Plugin crons
|
|
- name: assure nextcloud preview generator cronjob
|
|
ansible.builtin.cron: user=root name=nextcloud-preview-generator hour=1 minute=10 job="docker exec --user www-data nextcloud php occ preview:pre-generate"
|
|
tags: [ docker, nextcloud, cron ]
|
|
# Maintenance tasks
|
|
- name: assure nextcloud update cronjob
|
|
ansible.builtin.cron: user=root name=nextcloud-update minute=*/30 job="docker exec --user www-data nextcloud php occ app:update --all"
|
|
tags: [ docker, nextcloud, cron ]
|
|
- name: assure nextcloud db indices cronjob
|
|
ansible.builtin.cron: user=root name=nextcloud-update-db-inidices hour=1 job="docker exec --user www-data nextcloud php occ db:add-missing-indices"
|
|
tags: [ docker, nextcloud, cron ]
|
|
- name: assure nextcloud expensive migration cronjob
|
|
ansible.builtin.cron: user=root name=nextcloud-update-expensive-migration hour=1 minute=30 job="docker exec --user www-data nextcloud php occ db:add-missing-indices"
|
|
tags: [ docker, nextcloud, cron ]
|