diff --git a/templates/Snipe-IT/0/docker-compose.yml b/templates/Snipe-IT/0/docker-compose.yml index 3647602..66cbb76 100644 --- a/templates/Snipe-IT/0/docker-compose.yml +++ b/templates/Snipe-IT/0/docker-compose.yml @@ -43,8 +43,13 @@ services: - mysql networks: - public-proxy + {{- if .Values.WEB_PORT}} ports: - "${WEB_PORT}:80" + {{- else}} + expose: + - "80" + {{- end}} restart: on-failure volumes: - /RancherCattleData/${DATA_DIR}/Application:/var/lib/snipeit diff --git a/templates/Snipe-IT/0/rancher-compose.yml b/templates/Snipe-IT/0/rancher-compose.yml index 5e4be4f..05a87e5 100644 --- a/templates/Snipe-IT/0/rancher-compose.yml +++ b/templates/Snipe-IT/0/rancher-compose.yml @@ -29,8 +29,9 @@ catalog: label: "Local Web Port" description: | 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" - required: true + required: false type: string - variable: "DATA_DIR"