{
  "id": "matomo",
  "name": "Matomo",
  "slogan": "A privacy-friendly, self-hosted alternative to Google Analytics with full data ownership.",
  "category": "Analytics",
  "categorySlug": "analytics",
  "tags": [
    "mysql",
    "multi-service"
  ],
  "license": {
    "spdx": "GPL-3.0-or-later",
    "class": "copyleft"
  },
  "memoryMiB": 512,
  "architectures": {
    "amd64": "published",
    "arm64": "published"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install matomo --name my-matomo",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/matomo/",
  "docsUrl": "https://matomo.org/faq/how-to-install/install-matomo-with-docker/",
  "sourceRepo": "https://github.com/matomo-org/matomo",
  "markdownUrl": "https://levelrail.com/templates/matomo.md",
  "jsonUrl": "https://levelrail.com/templates/matomo.json",
  "indexable": true,
  "description": "A privacy-friendly, self-hosted alternative to Google Analytics with full data ownership. Runs 2 containers (db, matomo), with matomo listening on port 80 and keeps its data in named volumes.",
  "pinnedTag": "10.11",
  "licenseUrl": "https://github.com/matomo-org/matomo/blob/6.x-dev/LICENSE",
  "licenseClassLabel": "Copyleft license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [],
  "services": [
    {
      "name": "db",
      "image": "mariadb",
      "tag": "10.11",
      "ports": [],
      "volumes": [
        "matomo_db_data -> /var/lib/mysql"
      ]
    },
    {
      "name": "matomo",
      "image": "matomo",
      "tag": "5.13.0-apache",
      "ports": [
        80
      ],
      "volumes": [
        "matomo_data -> /var/www/html"
      ]
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "MYSQL_DATABASE",
      "kind": "preset"
    },
    {
      "service": "db",
      "name": "MYSQL_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "MYSQL_ROOT_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "MYSQL_USER",
      "kind": "preset"
    },
    {
      "service": "matomo",
      "name": "MATOMO_DATABASE_DBNAME",
      "kind": "preset"
    },
    {
      "service": "matomo",
      "name": "MATOMO_DATABASE_HOST",
      "kind": "preset"
    },
    {
      "service": "matomo",
      "name": "MATOMO_DATABASE_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "matomo",
      "name": "MATOMO_DATABASE_USERNAME",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates deploy matomo --name my-matomo",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/matomo/deploy",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates deploy matomo --name my-matomo"
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/matomo/deploy",
        "note": "Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove."
      }
    ]
  }
}
