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