summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSolomon English <[email protected]>2019-10-19 12:32:43 -0700
committerKasra Bigdeli <[email protected]>2019-10-19 15:32:43 -0400
commit1a8f5474536d81ca69b5f56d884c27cf15636452 (patch)
tree5d49c68e968600c833730d65c7617f8a679485e0
parentf4c1c0ee3e6c5734a7bbf0e7bd0023eb3e21cf30 (diff)
downloadcaprover-one-click-apps-1a8f5474536d81ca69b5f56d884c27cf15636452.tar.gz
caprover-one-click-apps-1a8f5474536d81ca69b5f56d884c27cf15636452.zip
Add the matomo service (#92)
-rw-r--r--public/v2/apps/matomo.json73
1 files changed, 73 insertions, 0 deletions
diff --git a/public/v2/apps/matomo.json b/public/v2/apps/matomo.json
new file mode 100644
index 0000000..359aa53
--- /dev/null
+++ b/public/v2/apps/matomo.json
@@ -0,0 +1,73 @@
+{
+ "captainVersion": "2",
+ "documentation": "Taken from https://hub.docker.com/_/matomo?tab=description",
+ "dockerCompose": {
+ "version": "3.1",
+ "services": {
+ "$$cap_appname-db": {
+ "dockerfileLines": [
+ "FROM mariadb:$$cap_mysql_version",
+ "CMD [\"--character-set-server=utf8mb4\", \"--collation-server=utf8mb4_unicode_ci\", \"--skip-character-set-client-handshake\", \"--max-allowed-packet=64MB\"]"
+ ],
+ "notExposeAsWebApp": "true",
+ "volumes": ["$$cap_appname-db-data:/var/lib/mysql"],
+ "restart": "always",
+ "environment": {
+ "MYSQL_DATABASE": "matomo",
+ "MYSQL_USER": "matomo",
+ "MYSQL_PASSWORD": "$$cap_db_pass",
+ "MYSQL_ROOT_PASSWORD": "$$cap_db_root_pass"
+ }
+ },
+ "$$cap_appname": {
+ "depends_on": [
+ "$$cap_appname-db"
+ ],
+ "image": "matomo:$$cap_matomo_version",
+ "containerHttpPort": "80",
+ "restart": "always",
+ "volumes": ["$$cap_appname-data:/var/www/html"],
+ "environment": {
+ "MATOMO_DATABASE_HOST": "srv-captain--$$cap_appname-db",
+ "MATOMO_DATABASE_ADAPTER": "mysql",
+ "MATOMO_DATABASE_TABLES_PREFIX": "matomo_",
+ "MATOMO_DATABASE_USERNAME": "matomo",
+ "MATOMO_DATABASE_PASSWORD": "$$cap_db_pass",
+ "MATOMO_DATABASE_DBNAME": "matomo"
+ }
+ }
+ }
+ },
+ "instructions": {
+ "start": "Matomo is the leading open-source analytics platform that gives you more than powerful analytics.",
+ "end": "Matomo is successfully deployed!"
+ },
+ "variables": [
+ {
+ "id": "$$cap_matomo_version",
+ "label": "Matomo Version",
+ "defaultValue": "3.11.0",
+ "description": "Check out their docker page for the valid tags https://hub.docker.com/_/matomo?tab=tags",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ },
+ {
+ "id": "$$cap_mysql_version",
+ "label": "MariaDB Version",
+ "defaultValue": "10.4",
+ "description": "Check out their docker page for the valid tags https://hub.docker.com/_/mariadb?tab=tags",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ },
+ {
+ "id": "$$cap_db_root_pass",
+ "label": "MariaDB Matomo User Password",
+ "description": "The password to use for the matomo database",
+ "validRegex": "/.{1,}/"
+ },
+ {
+ "id": "$$cap_db_pass",
+ "label": "MariaDB Root Password",
+ "description": "The root password to use for the MariaDB instance",
+ "validRegex": "/.{1,}/"
+ }
+ ]
+}