From 505c7dad495bc0e4cbb866961bad5b34cb225f45 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Wed, 8 Aug 2018 02:06:16 -0400 Subject: [PATCH] Added label for rancher to always pull image before deploying container --- templates/Nextcloud/0/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/Nextcloud/0/docker-compose.yml b/templates/Nextcloud/0/docker-compose.yml index c9f5287..23d4628 100644 --- a/templates/Nextcloud/0/docker-compose.yml +++ b/templates/Nextcloud/0/docker-compose.yml @@ -17,6 +17,7 @@ services: NEXTCLOUD_ADMIN_PASSWORD: ${NC_ADMIN_PASS} labels: # io.rancher.container.hostname_override: container_name + io.rancher.container.pull_image: always {{- if (.Values.HOST_LABEL)}} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} {{- end}} @@ -50,6 +51,7 @@ services: MYSQL_USER: nextcloud_user MYSQL_PASSWORD: ${DB_USER_PASS} labels: + io.rancher.container.pull_image: always {{- if (.Values.HOST_LABEL)}} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} {{- end}}