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