From 2c3fa9d96d48fc8cb71f56171e25952c6f55b02a Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Sat, 5 Jan 2019 20:54:23 -0500 Subject: [PATCH] Trying a different entrypoint for Cron --- templates/Nextcloud/0/docker-compose.yml | 26 ++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/templates/Nextcloud/0/docker-compose.yml b/templates/Nextcloud/0/docker-compose.yml index d89e067..0177d46 100644 --- a/templates/Nextcloud/0/docker-compose.yml +++ b/templates/Nextcloud/0/docker-compose.yml @@ -21,6 +21,20 @@ services: traefik.enable: false restart: on-failure {{- end}} + cron: + image: nextcloud:fpm-alpine + dns: # Using Cloudflare DNS + - 1.1.1.1 + - 1.0.0.1 + entrypoint: | + #!/bin/sh + set -eu + + exec busybox crond -f -l 0 -L /dev/stdout + restart: on-failure + user: www-data + volumes_from: + - nextcloud nextcloud: image: nextcloud:fpm-alpine dns: # Using Cloudflare DNS @@ -43,11 +57,19 @@ services: {{- end}} traefik.enable: false links: + - cron - mysql {{- if eq .Values.REDIS "true"}} - redis {{- end}} restart: on-failure + volumes: + - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system + - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system + - /RancherCattle/${DATA_DIR}/Configuration/Nextcloud:/var/www/html/config # Nextcloud configuration files + - /RancherCattle/${DATA_DIR}/Apps:/var/www/html/custom_apps # Nextcloud apps + - /RancherCattle/${DATA_DIR}/Nextcloud:/var/www/html # Nextcloud site + - /RancherCattle/${DATA_DIR}/UserData:/var/www/html/data # Users' data file volumes_from: - nginx nginx: @@ -97,11 +119,7 @@ services: volumes: - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system - - /RancherCattle/${DATA_DIR}/Configuration/Nextcloud:/var/www/html/config # Nextcloud configuration files - /RancherCattle/${DATA_DIR}/Configuration/NGINX:/etc/nginx # NGINX configuration files - - /RancherCattle/${DATA_DIR}/Apps:/var/www/html/custom_apps # Nextcloud apps - - /RancherCattle/${DATA_DIR}/Nextcloud:/var/www/html # Nextcloud site - - /RancherCattle/${DATA_DIR}/UserData:/var/www/html/data # Users' data file mysql: image: mysql:5 dns: # Using Cloudflare DNS