Added Traefik v2 TCP connection
This commit is contained in:
@@ -18,7 +18,17 @@ 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}}
|
||||||
traefik.enable: false
|
### Begin Traefik Configuration
|
||||||
|
traefik.enable: true
|
||||||
|
# Routers
|
||||||
|
traefik.tcp.routers.{{.Stack.Name}}-router-mariadb.entrypoints: mysql
|
||||||
|
traefik.tcp.routers.{{.Stack.Name}}-router-mariadb.rule: HostSNI(`${TRAEFIK_HOST}`)
|
||||||
|
traefik.tcp.routers.{{.Stack.Name}}-router-mariadb.tls: true
|
||||||
|
traefik.tcp.routers.{{.Stack.Name}}-router-mariadb.tls.certresolver: letsencrypt
|
||||||
|
traefik.tcp.routers.{{.Stack.Name}}-router-mariadb.service: {{.Stack.Name}}-service-mariadb
|
||||||
|
# Services
|
||||||
|
traefik.tcp.services.{{.Stack.Name}}-service-mariadb.loadbalancer.server.port: "3306"
|
||||||
|
### End Traefik Configuration
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
||||||
|
|||||||
@@ -17,6 +17,14 @@ 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.
|
||||||
|
default: "subdomain.domain.tld"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
- variable: "DB"
|
- variable: "DB"
|
||||||
label: "Database Name"
|
label: "Database Name"
|
||||||
description: |
|
description: |
|
||||||
|
|||||||
Reference in New Issue
Block a user