From 96192bcd692c5b1e2972e44bbef22e565a894a3d Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Sat, 1 Jun 2019 16:07:05 -0400 Subject: [PATCH] Added dropdown for choice of PHP version --- templates/Joomla/0/docker-compose.yml | 4 +++- templates/Joomla/0/rancher-compose.yml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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: |