Trying a different entrypoint for Cron
This commit is contained in:
@@ -21,6 +21,20 @@ services:
|
|||||||
traefik.enable: false
|
traefik.enable: false
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
{{- end}}
|
{{- 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:
|
nextcloud:
|
||||||
image: nextcloud:fpm-alpine
|
image: nextcloud:fpm-alpine
|
||||||
dns: # Using Cloudflare DNS
|
dns: # Using Cloudflare DNS
|
||||||
@@ -43,11 +57,19 @@ services:
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
traefik.enable: false
|
traefik.enable: false
|
||||||
links:
|
links:
|
||||||
|
- cron
|
||||||
- mysql
|
- mysql
|
||||||
{{- if eq .Values.REDIS "true"}}
|
{{- if eq .Values.REDIS "true"}}
|
||||||
- redis
|
- redis
|
||||||
{{- end}}
|
{{- end}}
|
||||||
restart: on-failure
|
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:
|
volumes_from:
|
||||||
- nginx
|
- nginx
|
||||||
nginx:
|
nginx:
|
||||||
@@ -97,11 +119,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
- /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
|
- /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}/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:
|
mysql:
|
||||||
image: mysql:5
|
image: mysql:5
|
||||||
dns: # Using Cloudflare DNS
|
dns: # Using Cloudflare DNS
|
||||||
|
|||||||
Reference in New Issue
Block a user