2021-08-24 00:31:11 -05:00
|
|
|
# vim:ft=ansible:
|
|
|
|
- name: docker deploy nextcloud
|
|
|
|
docker_container:
|
|
|
|
name: nextcloud
|
2021-12-24 12:16:44 -06:00
|
|
|
image: nextcloud:23
|
2021-10-12 15:29:06 -05:00
|
|
|
# The entrypoint workaround is for this issue:
|
|
|
|
#
|
|
|
|
# https://github.com/nextcloud/docker/issues/1414
|
|
|
|
#
|
|
|
|
# This installs imagemagick to allow for SVG support and to clear the last
|
|
|
|
# setup warning in the application.
|
|
|
|
# It can be safely removed upon closure of this issue. I'm just doing it to
|
|
|
|
# make the big bad triangle go away.
|
|
|
|
entrypoint: /bin/sh
|
|
|
|
command: -c "apt-get update; apt-get install -y libmagickcore-6.q16-6-extra; /entrypoint.sh apache2-foreground"
|
2021-09-11 10:36:22 -05:00
|
|
|
env:
|
|
|
|
PHP_UPLOAD_LIMIT: 1024M
|
2021-08-24 00:31:11 -05:00
|
|
|
networks:
|
|
|
|
- name: web
|
|
|
|
aliases: [ "nextcloud" ]
|
|
|
|
volumes:
|
2021-08-28 11:01:44 -05:00
|
|
|
- /data/nextcloud/custom_apps:/var/www/html/custom_apps
|
2021-08-24 00:31:11 -05:00
|
|
|
- /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 ]
|
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"
|
2021-08-24 12:25:29 -05:00
|
|
|
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 ]
|