From 04a449f373771a5c0d77a85d8d95a6f964a1df9c Mon Sep 17 00:00:00 2001 From: WilliamMiceli Date: Fri, 8 Feb 2019 23:48:13 -0500 Subject: [PATCH] WIP: Added most needed elements --- templates/Matomo/0/README.md | 6 +--- templates/Matomo/0/docker-compose.yml | 25 +++++++++++++ templates/Matomo/0/rancher-compose.yml | 49 ++++++++++++++++++++++++++ templates/Matomo/config.yml | 8 +++++ 4 files changed, 83 insertions(+), 5 deletions(-) create mode 100644 templates/Matomo/0/docker-compose.yml create mode 100644 templates/Matomo/0/rancher-compose.yml create mode 100644 templates/Matomo/config.yml diff --git a/templates/Matomo/0/README.md b/templates/Matomo/0/README.md index 7a4646f..5b5a6d1 100644 --- a/templates/Matomo/0/README.md +++ b/templates/Matomo/0/README.md @@ -1,5 +1 @@ -# Matomo (formerly Piwik) - -### Will continue this in the future - -https://store.docker.com/_/matomo \ No newline at end of file +# Matomo \ No newline at end of file diff --git a/templates/Matomo/0/docker-compose.yml b/templates/Matomo/0/docker-compose.yml new file mode 100644 index 0000000..35751a4 --- /dev/null +++ b/templates/Matomo/0/docker-compose.yml @@ -0,0 +1,25 @@ +version: "2" + +services: + matomo: + image: matomo:3.5-apache + restart: always + links: + - db + volumes: + - "./config:/var/www/html/config:rw" + - "./logs:/var/www/html/logs" + environment: + VIRTUAL_HOST: CHANGE_ME + ports: + - "80:80" + + db: + image: mariadb:latest + volumes: + - ./mysql/runtime2:/var/lib/mysql + environment: + MYSQL_DATABASE: matomo_db + MYSQL_ROOT_PASSWORD: CHANGE_ME + MYSQL_USER: matomo_user + MYSQL_PASSWORD: CHANGE_ME \ No newline at end of file diff --git a/templates/Matomo/0/rancher-compose.yml b/templates/Matomo/0/rancher-compose.yml new file mode 100644 index 0000000..4b547a8 --- /dev/null +++ b/templates/Matomo/0/rancher-compose.yml @@ -0,0 +1,49 @@ +version: '2' +catalog: + name: Matomo + version: latest + # description: + # minimum_rancher_version: + # maximum_rancher_version: + # upgrade_from: + questions: + + - variable: "HOST_LABEL" + label: "Host Label Key/Value Pair" + description: | + The Label Key/Value pair of the host which containers should be deployed + default: "host.id=Host1" + required: false + type: string + + - variable: "TRAEFIK_HOST" + label: "Public Host Domain" + description: | + The host that Traefik will use to provide public access. + default: "subdomain.domain.tld" + required: true + type: string + + - variable: "DB_ROOT_PASS" + label: "Database Root Password" + description: | + A secure password to be used by the "root" database user. + # default: + required: true + type: password + + - variable: "DB_USER_PASS" + label: "Database User Password" + description: | + A secure password to be used by the "matomo_user" database user. + # default: + required: true + type: password + + - variable: "DATA_DIR" + label: "Data Directory" + description: | + The directory to store persistent data for the stack. + default: "Personal/Matomo" + required: true + type: string \ No newline at end of file diff --git a/templates/Matomo/config.yml b/templates/Matomo/config.yml new file mode 100644 index 0000000..e21b6da --- /dev/null +++ b/templates/Matomo/config.yml @@ -0,0 +1,8 @@ +name: Matomo +description: | + Status: NOT READY +version: latest +# category: +maintainer: WilliamMiceli +# license: +# projectURL: \ No newline at end of file