From 2743fe7d71355342f89cacfd17e589d6960afc77 Mon Sep 17 00:00:00 2001 From: Martin Evgeniev Date: Tue, 22 Nov 2016 10:58:05 +0100 Subject: [PATCH] Update docker-compose.yml Fix host affinity label --- templates/MongoDB/2/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/MongoDB/2/docker-compose.yml b/templates/MongoDB/2/docker-compose.yml index 5156707..2a821e5 100644 --- a/templates/MongoDB/2/docker-compose.yml +++ b/templates/MongoDB/2/docker-compose.yml @@ -9,7 +9,7 @@ mongo-cluster: - "${replset_name}" image: mongo:3.2 labels: - io.rancher.scheduler.affinity: "${host_label}" + io.rancher.scheduler.affinity:host_label: ${host_label} io.rancher.container.hostname_override: container_name io.rancher.sidekicks: mongo-base, mongo-datavolume volumes_from: @@ -20,7 +20,7 @@ mongo-base: net: none tty: true labels: - io.rancher.scheduler.affinity: "${host_label}" + io.rancher.scheduler.affinity:host_label: ${host_label} io.rancher.container.hostname_override: container_name io.rancher.container.start_once: true image: rancher/mongodb-conf:v0.1.0 @@ -29,7 +29,7 @@ mongo-base: mongo-datavolume: net: none labels: - io.rancher.scheduler.affinity: "${host_label}" + io.rancher.scheduler.affinity:host_label: ${host_label} io.rancher.container.hostname_override: container_name io.rancher.container.start_once: true volumes: