ansible/playbooks/tasks/web/nextcloud.yml

21 lines
821 B
YAML

# vim:ft=ansible:
- name: docker deploy nextcloud
docker_container:
name: nextcloud
image: nextcloud:21
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
- /srv/desu.ltd/nc:/var/www/html/data
tags: [ docker, nextcloud ]
- name: assure nextcloud cron cronjob
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 ]
- name: assure nextcloud update cronjob
cron: user=root name=nextcloud-update minute=*/30 job="docker exec --user www-data nextcloud php occ app:update --all"
tags: [ docker, nextcloud, cron ]