Added Traefik v2 TCP connection
This commit is contained in:
@@ -18,7 +18,17 @@ services:
|
||||
{{- if .Values.HOST_LABEL}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- 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
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
||||
|
||||
@@ -17,6 +17,14 @@ catalog:
|
||||
required: false
|
||||
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"
|
||||
label: "Database Name"
|
||||
description: |
|
||||
|
||||
Reference in New Issue
Block a user