ansible/playbooks/tasks/web/nextcloud.yml

24 lines
925 B
YAML
Raw Normal View History

# vim:ft=ansible:
- name: docker deploy nextcloud
docker_container:
name: nextcloud
2024-12-07 00:23:56 -06:00
image: nextcloud:29
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
2023-02-04 16:54:48 -06:00
- /data/nextcloud/data:/var/www/html/data
- /data/shared:/shared
tags: [ docker, nextcloud ]
2021-08-29 23:55:56 -05:00
- name: assure nextcloud cron cronjob
2022-06-16 23:45:29 -05:00
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 ]
2021-08-29 23:55:56 -05:00
- name: assure nextcloud update cronjob
2022-06-16 23:45:29 -05:00
ansible.builtin.cron: user=root name=nextcloud-update minute=*/30 job="docker exec --user www-data nextcloud php occ app:update --all"
2021-08-29 23:55:56 -05:00
tags: [ docker, nextcloud, cron ]