From 81f9135af26b19c750404eb4e4bb147284006a52 Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Thu, 6 Dec 2018 15:41:17 -0500 Subject: [PATCH] Added time sync and nginx:alpine tag, fixed questions --- templates/InvoiceNinja/0/docker-compose.yml | 6 +++++- templates/InvoiceNinja/0/rancher-compose.yml | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/templates/InvoiceNinja/0/docker-compose.yml b/templates/InvoiceNinja/0/docker-compose.yml index b105eb3..7e506ec 100644 --- a/templates/InvoiceNinja/0/docker-compose.yml +++ b/templates/InvoiceNinja/0/docker-compose.yml @@ -14,6 +14,8 @@ services: - mysql restart: on-failure volumes: + - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system + - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system - /RancherCattleConfig/${DATA_DIR}/.env:/var/www/app/.env - /RancherCattleData/${DATA_DIR}/Logo:/var/www/app/public/logo - /RancherCattleData/${DATA_DIR}/Storage:/var/www/app/storage @@ -60,9 +62,11 @@ services: traefik.enable: false restart: on-failure volumes: + - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system + - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system - /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql nginx: - image: nginx + image: nginx:alpine dns: - 1.1.1.1 - 1.0.0.1 diff --git a/templates/InvoiceNinja/0/rancher-compose.yml b/templates/InvoiceNinja/0/rancher-compose.yml index 84aed42..3711750 100644 --- a/templates/InvoiceNinja/0/rancher-compose.yml +++ b/templates/InvoiceNinja/0/rancher-compose.yml @@ -33,6 +33,22 @@ catalog: required: true type: string + - variable: "DB_ROOT_PASS" + label: "MySQL Root Password" + description: | + A secure password to be used by the "root" MySQL user. + # default: + required: true + type: password + + - variable: "DB_USER_PASS" + label: "MySQL User Password" + description: | + A secure password to be used by the "ninja" MySQL user. + # default: + required: true + type: password + - variable: DATA_DIR label: "Data Directory" description: |