From 0a2e21f8f362b1192cbdcba33e9aad3ac1b95b0d Mon Sep 17 00:00:00 2001 From: Nick Portokallidis Date: Mon, 16 May 2016 19:23:43 +0300 Subject: [PATCH] Add custom port variable for wordpress (#103) * add variable for custom public port * add public_port variable --- templates/wordpress/0/docker-compose.yml | 2 +- templates/wordpress/0/rancher-compose.yml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/wordpress/0/docker-compose.yml b/templates/wordpress/0/docker-compose.yml index cfa4ec0..6f264a7 100644 --- a/templates/wordpress/0/docker-compose.yml +++ b/templates/wordpress/0/docker-compose.yml @@ -3,7 +3,7 @@ wordpress: links: - db:mysql ports: - - 80:80 + - ${public_port}:80 db: image: mariadb diff --git a/templates/wordpress/0/rancher-compose.yml b/templates/wordpress/0/rancher-compose.yml index 4b7075e..7f5e34c 100644 --- a/templates/wordpress/0/rancher-compose.yml +++ b/templates/wordpress/0/rancher-compose.yml @@ -4,7 +4,13 @@ description: "Blog tool, publishing platform and CMS" uuid: Wordpress-0 minimum_rancher_version: v0.51.0 - questions: + questions: + - variable: public_port + description: "public port to access the wordpress site" + label: "Public Port" + required: true + default: "80" + type: "int" wordpress: