ansible/playbooks/tasks/web/nextcloud.yml

18 lines
605 B
YAML
Raw Normal View History

# vim:ft=ansible:
- name: docker deploy nextcloud
docker_container:
name: nextcloud
image: nextcloud:21
networks:
- name: web
aliases: [ "nextcloud" ]
volumes:
- /data/nextcloud/apps:/var/www/html/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 cronjob
2021-08-24 21:22:11 -05:00
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 ]