diff --git a/templates/gocd/0/docker-compose.yml.tpl b/templates/gocd/0/docker-compose.yml.tpl index dfec07f..218eaed 100644 --- a/templates/gocd/0/docker-compose.yml.tpl +++ b/templates/gocd/0/docker-compose.yml.tpl @@ -36,7 +36,7 @@ services: - GOCD_PLUGIN_google-auth=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.3/google-oauth-login-2.3.jar - GOCD_PLUGIN_github-auth=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.3/github-oauth-login-2.3.jar {{- end}} - {{- if and (ne .Values.DEPLOY_LB "true") (ne .Values.PUBLISH_PORT "false")}} + {{- if and (ne .Values.DEPLOY_LB "true") (.Values.PUBLISH_PORT)}} ports: - ${PUBLISH_PORT}:8153 {{- end}} @@ -46,7 +46,7 @@ services: {{- if eq .Values.DEPLOY_LB "true"}} lb: image: rancher/lb-service-haproxy:v0.6.2 - {{- if (ne .Values.PUBLISH_PORT "false")}} + {{- if (.Values.PUBLISH_PORT)}} ports: - ${PUBLISH_PORT}:8153/tcp {{- else}}