Testing using external links to other services
This commit is contained in:
@@ -8,12 +8,17 @@ services:
|
|||||||
- 1.0.0.1
|
- 1.0.0.1
|
||||||
environment:
|
environment:
|
||||||
PMA_ARBITRARY: 1 # Allows the user to specify any arbitrary server using address/hostname and port
|
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:
|
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
|
||||||
### Start Web Segment
|
### Start Web Segment
|
||||||
traefik.web.frontend.entryPoints: http,https
|
traefik.web.frontend.entryPoints: http,https
|
||||||
@@ -26,9 +31,4 @@ services:
|
|||||||
traefik.web.frontend.rule: Host:${TRAEFIK_HOST}
|
traefik.web.frontend.rule: Host:${TRAEFIK_HOST}
|
||||||
traefik.web.port: "80"
|
traefik.web.port: "80"
|
||||||
### End Web Segment
|
### End Web Segment
|
||||||
{{- else}}
|
|
||||||
traefik.enable: false
|
|
||||||
{{- end}}
|
|
||||||
ports:
|
|
||||||
- "${WEB_PORT}:80"
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
@@ -21,15 +21,51 @@ catalog:
|
|||||||
label: "Public Host Domain"
|
label: "Public Host Domain"
|
||||||
description: |
|
description: |
|
||||||
The host that Traefik will use to provide public access.
|
The host that Traefik will use to provide public access.
|
||||||
Leaving this empty will disable Traefik on this stack.
|
|
||||||
default: "subdomain.domain.tld"
|
default: "subdomain.domain.tld"
|
||||||
required: false
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
- variable: "WEB_PORT"
|
- variable: "SERVICE_LINK_1"
|
||||||
label: "Local Web Port"
|
label: "Service 1"
|
||||||
description: |
|
description: |
|
||||||
The port to locally access the web interface on.
|
(Optional) Create a link to another service
|
||||||
default: "10700"
|
required: false
|
||||||
required: true
|
type: service
|
||||||
type: string
|
|
||||||
|
- 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
|
||||||
Reference in New Issue
Block a user