diff --git a/templates/Joomla/0/docker-compose.yml b/templates/Joomla/0/docker-compose.yml index ab5d596..be69188 100644 --- a/templates/Joomla/0/docker-compose.yml +++ b/templates/Joomla/0/docker-compose.yml @@ -2,7 +2,9 @@ version: '2' services: joomla: - image: joomla:latest + {{- if eq .Values.IMAGE_VERSION "Apache (PHP 7.1)"}}image: joomla:php7.1-apache{{- else}} + {{- if eq .Values.IMAGE_VERSION "Apache (PHP 7.2)"}}image: joomla:php7.2-apache{{- else}} + {{- if eq .Values.IMAGE_VERSION "Apache (PHP 7.3)"}}image: joomla:php7.3-apache{{- end}} dns: # Using Cloudflare DNS - 1.1.1.1 - 1.0.0.1 diff --git a/templates/Joomla/0/rancher-compose.yml b/templates/Joomla/0/rancher-compose.yml index a8a3788..e2c0a4a 100644 --- a/templates/Joomla/0/rancher-compose.yml +++ b/templates/Joomla/0/rancher-compose.yml @@ -40,6 +40,18 @@ catalog: required: true type: password + - variable: "IMAGE_VERSION" + label: "Image Version" + description: | + What version of the image should be used. + # default: + required: true + type: enum + options: + - Apache (PHP 7.1) + - Apache (PHP 7.2) + - Apache (PHP 7.3) + - variable: "DATA_DIR" label: "Data Directory" description: |