Testing without Cron

This commit is contained in:
WilliamMiceli
2019-01-07 10:37:29 -05:00
parent 669ce48762
commit a0cfcfae17

View File

@@ -21,24 +21,24 @@ services:
traefik.enable: false traefik.enable: false
restart: on-failure restart: on-failure
{{- end}} {{- end}}
cron: # cron:
image: nextcloud:fpm-alpine # image: nextcloud:fpm-alpine
dns: # Using Cloudflare DNS # dns: # Using Cloudflare DNS
- 1.1.1.1 # - 1.1.1.1
- 1.0.0.1 # - 1.0.0.1
entrypoint: | # entrypoint: |
sh -c 'sh -s <<EOF # sh -c 'sh -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM # trap "break;exit" SIGHUP SIGINT SIGTERM
while /bin/true; do # while /bin/true; do
su -s "/bin/sh" -c "/usr/local/bin/php /var/www/html/cron.php" www-data # su -s "/bin/sh" -c "/usr/local/bin/php /var/www/html/cron.php" www-data
echo $$(date) - Running cron finished # echo $$(date) - Running cron finished
sleep 900 # sleep 900
done # done
EOF' # EOF'
restart: on-failure # restart: on-failure
user: www-data # user: www-data
volumes_from: # volumes_from:
- nextcloud # - nextcloud
nextcloud: nextcloud:
image: nextcloud:fpm-alpine image: nextcloud:fpm-alpine
dns: # Using Cloudflare DNS dns: # Using Cloudflare DNS
@@ -60,10 +60,10 @@ services:
{{- if .Values.HOST_LABEL}} {{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
io.rancher.sidekicks: cron # io.rancher.sidekicks: cron
traefik.enable: false traefik.enable: false
links: links:
- cron # - cron
- mysql - mysql
{{- if eq .Values.REDIS "true"}} {{- if eq .Values.REDIS "true"}}
- redis - redis