Testing using external links to other services

This commit is contained in:
WilliamMiceli
2019-01-16 19:33:50 -05:00
parent 48f9cbaf85
commit c68e8219c8
2 changed files with 50 additions and 14 deletions

View File

@@ -8,12 +8,17 @@ services:
- 1.0.0.1
environment:
PMA_ARBITRARY: 1 # Allows the user to specify any arbitrary server using address/hostname and port
{{- if .Values.SERVICE_LINK_1}}
external_links:
- ${SERVICE_LINK_1}{{- if .Values.SERVICE_LINK_1_ALIAS}}:${SERVICE_LINK_1_ALIAS}{{- end}}
- ${SERVICE_LINK_2}{{- if .Values.SERVICE_LINK_2_ALIAS}}:${SERVICE_LINK_2_ALIAS}{{- end}}
- ${SERVICE_LINK_3}{{- if .Values.SERVICE_LINK_3_ALIAS}}:${SERVICE_LINK_3_ALIAS}{{- end}}
{{- end}}
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if .Values.TRAEFIK_HOST}}
traefik.enable: true
### Start Web Segment
traefik.web.frontend.entryPoints: http,https
@@ -26,9 +31,4 @@ services:
traefik.web.frontend.rule: Host:${TRAEFIK_HOST}
traefik.web.port: "80"
### End Web Segment
{{- else}}
traefik.enable: false
{{- end}}
ports:
- "${WEB_PORT}:80"
restart: on-failure

View File

@@ -21,15 +21,51 @@ catalog:
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: "Local Web Port"
description: |
The port to locally access the web interface on.
default: "10700"
required: true
type: string
- variable: "SERVICE_LINK_1"
label: "Service 1"
description: |
(Optional) Create a link to another service
required: false
type: service
- variable: "SERVICE_LINK_1_ALIAS"
label: "Service 1 Alias"
description: |
(Optional) Create an alias for the service
# default:
required: false
type: service
- variable: "SERVICE_LINK_2"
label: "Service 2"
description: |
(Optional) Create a link to another service
required: false
type: service
- variable: "SERVICE_LINK_2_ALIAS"
label: "Service 2 Alias"
description: |
(Optional) Create an alias for the service
# default:
required: false
type: service
- variable: "SERVICE_LINK_3"
label: "Service 3"
description: |
(Optional) Create a link to another service
required: false
type: service
- variable: "SERVICE_LINK_3_ALIAS"
label: "Service 3 Alias"
description: |
(Optional) Create an alias for the service
# default:
required: false
type: service