diff --git a/templates/HTTPD/0/docker-compose.yml b/templates/HTTPD/0/docker-compose.yml index 2eccdf9..7412549 100644 --- a/templates/HTTPD/0/docker-compose.yml +++ b/templates/HTTPD/0/docker-compose.yml @@ -32,7 +32,9 @@ services: - "${WEB_PORT}:80" restart: on-failure volumes: + {{- if eq .Values.PERSIST_CONF true}} - /RancherCattle/${DATA_DIR}/Configuration/httpd.conf:/usr/local/apache2/conf/httpd.conf + {{- end}} - /RancherCattle/${DATA_DIR}/Public-HTML:/usr/local/apache2/htdocs/ networks: diff --git a/templates/HTTPD/0/rancher-compose.yml b/templates/HTTPD/0/rancher-compose.yml index cf0c08a..98fde51 100644 --- a/templates/HTTPD/0/rancher-compose.yml +++ b/templates/HTTPD/0/rancher-compose.yml @@ -33,6 +33,14 @@ catalog: required: true 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" label: "Data Directory" description: |