From 8786766c935956bfd0608eecda13c891dd4fbacd Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Mon, 27 Aug 2018 17:51:01 -0400 Subject: [PATCH] Version 2 update --- templates/Ghost/0/docker-compose.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/templates/Ghost/0/docker-compose.yml b/templates/Ghost/0/docker-compose.yml index 021b46f..9594ad4 100644 --- a/templates/Ghost/0/docker-compose.yml +++ b/templates/Ghost/0/docker-compose.yml @@ -1,6 +1,12 @@ -ghost: - image: ghost - labels: - io.rancher.container.pull_image: always - ports: - - ${public_port}:2368 \ No newline at end of file +version: '2' + +services: + ghost: + image: ghost:latest + labels: + io.rancher.container.pull_image: always + {{- if (.Values.HOST_LABEL)}} + io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} + {{- end}} + ports: + - "${WEB_PORT}:2368" \ No newline at end of file