Host Label Key/Value Now Optional
This commit is contained in:
@@ -14,7 +14,9 @@ services:
|
|||||||
DB_USERNAME: ninja
|
DB_USERNAME: ninja
|
||||||
DB_PASSWORD: ninjaPass
|
DB_PASSWORD: ninjaPass
|
||||||
labels:
|
labels:
|
||||||
|
{{- if (.Values.LABEL_KEY_VALUE)}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
|
{{- end}}
|
||||||
io.rancher.sidekicks: cron, web
|
io.rancher.sidekicks: cron, web
|
||||||
links:
|
links:
|
||||||
- db:ninja-mysql
|
- db:ninja-mysql
|
||||||
@@ -46,7 +48,9 @@ services:
|
|||||||
DB_USERNAME: ninja
|
DB_USERNAME: ninja
|
||||||
DB_PASSWORD: ninjaPass
|
DB_PASSWORD: ninjaPass
|
||||||
labels:
|
labels:
|
||||||
|
{{- if (.Values.LABEL_KEY_VALUE)}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
|
{{- end}}
|
||||||
links:
|
links:
|
||||||
- db:ninja-mysql
|
- db:ninja-mysql
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
@@ -60,14 +64,18 @@ services:
|
|||||||
MYSQL_USER: ninja
|
MYSQL_USER: ninja
|
||||||
MYSQL_PASSWORD: ninjaPass
|
MYSQL_PASSWORD: ninjaPass
|
||||||
labels:
|
labels:
|
||||||
|
{{- if (.Values.LABEL_KEY_VALUE)}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
|
{{- end}}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_BASE_DIR}${DB_DIR}:/var/lib/mysql
|
- ${STORAGE_BASE_DIR}${DB_DIR}:/var/lib/mysql
|
||||||
web:
|
web:
|
||||||
image: nginx
|
image: nginx
|
||||||
labels:
|
labels:
|
||||||
|
{{- if (.Values.LABEL_KEY_VALUE)}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
|
||||||
|
{{- end}}
|
||||||
links:
|
links:
|
||||||
- app
|
- app
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ catalog:
|
|||||||
description: |
|
description: |
|
||||||
The Label Key/Value pair on the host which InvoiceNinja should be deployed
|
The Label Key/Value pair on the host which InvoiceNinja should be deployed
|
||||||
default: "host.id=0000"
|
default: "host.id=0000"
|
||||||
required: true
|
required: false
|
||||||
type: string
|
type: string
|
||||||
- variable: "WEB_PORT"
|
- variable: "WEB_PORT"
|
||||||
label: "Web Port"
|
label: "Web Port"
|
||||||
|
|||||||
Reference in New Issue
Block a user