Allowed disabling of local access

This commit is contained in:
WilliamMiceli
2018-11-18 17:38:11 -05:00
parent e2935e698f
commit e4bb26a8d0
2 changed files with 7 additions and 1 deletions

View File

@@ -43,8 +43,13 @@ services:
- mysql - mysql
networks: networks:
- public-proxy - public-proxy
{{- if .Values.WEB_PORT}}
ports: ports:
- "${WEB_PORT}:80" - "${WEB_PORT}:80"
{{- else}}
expose:
- "80"
{{- end}}
restart: on-failure restart: on-failure
volumes: volumes:
- /RancherCattleData/${DATA_DIR}/Application:/var/lib/snipeit - /RancherCattleData/${DATA_DIR}/Application:/var/lib/snipeit

View File

@@ -29,8 +29,9 @@ catalog:
label: "Local Web Port" label: "Local Web Port"
description: | description: |
The port to locally access the web interface on. The port to locally access the web interface on.
Leaving this empty will not expose a any port on the host system, disabling local access outside of it's Rancher network.
default: "10300" default: "10300"
required: true required: false
type: string type: string
- variable: "DATA_DIR" - variable: "DATA_DIR"