Added Traefik host option
This commit is contained in:
@@ -8,13 +8,17 @@ services:
|
|||||||
- 1.0.0.1
|
- 1.0.0.1
|
||||||
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}}
|
||||||
|
{{- if .Values.TRAEFIK_HOST}}
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
traefik.frontend.rule: Host:blog.williammiceli.me
|
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
||||||
traefik.port: "2368"
|
traefik.port: "2368"
|
||||||
traefik.frontend.entryPoints: https
|
traefik.frontend.entryPoints: https
|
||||||
|
{{- else}}
|
||||||
|
traefik.enable: false
|
||||||
|
{{- end}}
|
||||||
networks:
|
networks:
|
||||||
- public-proxy
|
- public-proxy
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -17,6 +17,15 @@ catalog:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
- variable: TRAEFIK_HOST
|
||||||
|
label: "Public Host Domain"
|
||||||
|
description: |
|
||||||
|
The host that Traefik will use to provide public access.
|
||||||
|
Leaving this empty will disable Traefik on this stack.
|
||||||
|
default: "subdomain.domain.tld"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
- variable: WEB_PORT
|
- variable: WEB_PORT
|
||||||
label: "Web Port"
|
label: "Web Port"
|
||||||
description: |
|
description: |
|
||||||
|
|||||||
Reference in New Issue
Block a user