Optional persistent configuration
This commit is contained in:
@@ -32,7 +32,9 @@ services:
|
|||||||
- "${WEB_PORT}:80"
|
- "${WEB_PORT}:80"
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
|
{{- if eq .Values.PERSIST_CONF true}}
|
||||||
- /RancherCattle/${DATA_DIR}/Configuration/httpd.conf:/usr/local/apache2/conf/httpd.conf
|
- /RancherCattle/${DATA_DIR}/Configuration/httpd.conf:/usr/local/apache2/conf/httpd.conf
|
||||||
|
{{- end}}
|
||||||
- /RancherCattle/${DATA_DIR}/Public-HTML:/usr/local/apache2/htdocs/
|
- /RancherCattle/${DATA_DIR}/Public-HTML:/usr/local/apache2/htdocs/
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -33,6 +33,14 @@ catalog:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
- variable: "PERSIST_CONF"
|
||||||
|
label: "Persistent Configuration"
|
||||||
|
description: |
|
||||||
|
Have a persistent httpd.conf file mounted.
|
||||||
|
default: true
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
- variable: "DATA_DIR"
|
- variable: "DATA_DIR"
|
||||||
label: "Data Directory"
|
label: "Data Directory"
|
||||||
description: |
|
description: |
|
||||||
|
|||||||
Reference in New Issue
Block a user