This commit is contained in:
WilliamMiceli
2018-08-28 16:30:08 -04:00
parent 8fec913fea
commit 7c9889adf5

View File

@@ -22,14 +22,26 @@ services:
{{- if (.Values.GMAPS_KEY)}} {{- if (.Values.GMAPS_KEY)}}
GOOGLE_MAPS_API_KEY: ${GMAPS_KEY} GOOGLE_MAPS_API_KEY: ${GMAPS_KEY}
{{- end}} {{- end}}
expose:
- "80"
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
{{- if (.Values.HOST_LABEL)}} {{- if (.Values.HOST_LABEL)}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
io.rancher.sidekicks: cron, web io.rancher.sidekicks: cron, web
{{- if .Values.TRAEFIK_HOST}}
traefik.enable: true
traefik.frontend.rule: Host:${TRAEFIK_HOST}
traefik.port: "80"
traefik.frontend.entryPoints: https
{{- else}}
traefik.enable: false
{{- end}}
links: links:
- mysql - mysql
networks:
- public-proxy
restart: on-failure restart: on-failure
volumes: volumes:
- Logo:/var/www/app/public/logo - Logo:/var/www/app/public/logo
@@ -104,14 +116,6 @@ services:
{{- if .Values.HOST_LABEL}} {{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
{{- if .Values.TRAEFIK_HOST}}
traefik.enable: true
traefik.frontend.rule: Host:${TRAEFIK_HOST}
traefik.port: "80"
traefik.frontend.entryPoints: https
{{- else}}
traefik.enable: false
{{- end}}
links: links:
- app - app
networks: networks: