Host Label Key/Value Now Optional

This commit is contained in:
WilliamMiceli
2018-06-28 03:48:10 -04:00
parent b29b638bd7
commit c9b26fb930
2 changed files with 9 additions and 1 deletions

View File

@@ -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:

View File

@@ -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"