Added Traefik host option to questions and compose

This commit is contained in:
WilliamMiceli
2018-08-27 19:45:55 -04:00
parent 6e4e58fe85
commit eb324de37f
2 changed files with 21 additions and 8 deletions

View File

@@ -18,10 +18,14 @@ 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.enable: true
traefik.frontend.rule: Host:cloudtest.williammiceli.systems traefik.frontend.rule: Host:${TRAEFIK_HOST}
traefik.port: "80" traefik.port: "80"
traefik.frontend.entryPoints: https traefik.frontend.entryPoints: https
{{- else}}
traefik.enable: false
{{- end}}
links: links:
- mysql - mysql
networks: networks:

View File

@@ -8,7 +8,7 @@ catalog:
# upgrade_from: # upgrade_from:
questions: questions:
- variable: HOST_LABEL - variable: "HOST_LABEL"
label: "Host Label Key/Value Pair" label: "Host Label Key/Value Pair"
description: | description: |
The Label Key/Value pair on the host which containers should be deployed The Label Key/Value pair on the host which containers should be deployed
@@ -16,7 +16,16 @@ catalog:
required: false required: false
type: string type: string
- variable: WEB_PORT - 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"
label: Port label: Port
description: | description: |
The port to access the web interface on. The port to access the web interface on.
@@ -24,7 +33,7 @@ catalog:
required: true required: true
type: string type: string
- variable: DB_ROOT_PASS - variable: "DB_ROOT_PASS"
label: "MySQL Root Password" label: "MySQL Root Password"
description: | description: |
A secure password to be used by the "root" MySQL user. A secure password to be used by the "root" MySQL user.
@@ -32,7 +41,7 @@ catalog:
required: true required: true
type: password type: password
- variable: DB_USER_PASS - variable: "DB_USER_PASS"
label: "MySQL User Password" label: "MySQL User Password"
description: | description: |
A secure password to be used by the "nextcloud_user" MySQL user. A secure password to be used by the "nextcloud_user" MySQL user.
@@ -40,7 +49,7 @@ catalog:
required: true required: true
type: password type: password
- variable: NC_ADMIN - variable: "NC_ADMIN"
label: "Nextcloud Admin Username" label: "Nextcloud Admin Username"
description: | description: |
The username of the Nextcloud admin user. The username of the Nextcloud admin user.
@@ -48,7 +57,7 @@ catalog:
required: true required: true
type: string type: string
- variable: NC_ADMIN_PASS - variable: "NC_ADMIN_PASS"
label: "Nextcloud Admin Password" label: "Nextcloud Admin Password"
description: | description: |
A secure password for the Nextcloud admin user. A secure password for the Nextcloud admin user.
@@ -56,7 +65,7 @@ catalog:
required: true required: true
type: password type: password
- variable: DATA_DIR - variable: "DATA_DIR"
label: "Data Directory" label: "Data Directory"
description: | description: |
The directory to store persistent data The directory to store persistent data