{
  "id": "mariadb",
  "name": "MariaDB",
  "slogan": "The MariaDB database server on the official image, with a persistent volume, generated root and user passwords, and an application database. It is not published on the host, so reach it from other services in this project at mariadb:3306.",
  "category": "Database Tools",
  "categorySlug": "database-tools",
  "tags": [
    "mysql",
    "single-container"
  ],
  "license": {
    "spdx": "GPL-2.0-only",
    "class": "copyleft"
  },
  "memoryMiB": 512,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install mariadb --name my-mariadb",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/mariadb/",
  "docsUrl": "https://mariadb.com/kb/en/documentation/",
  "sourceRepo": "https://github.com/MariaDB/server",
  "markdownUrl": "https://levelrail.com/templates/mariadb.md",
  "jsonUrl": "https://levelrail.com/templates/mariadb.json",
  "indexable": true,
  "description": "The MariaDB database server on the official image, with a persistent volume, generated root and user passwords, and an application database. It is not published on the host, so reach it from other services in this project at mariadb:3306.",
  "pinnedTag": "11.4.13",
  "licenseUrl": "https://github.com/MariaDB/server/blob/main/COPYING",
  "licenseClassLabel": "Copyleft license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Read the generated passwords from the app secrets, then connect with the application user or as root from a service in the same project."
  ],
  "services": [
    {
      "name": "mariadb",
      "image": "mariadb",
      "tag": "11.4.13",
      "ports": [
        3306
      ],
      "volumes": [
        "mariadb_data -> /var/lib/mysql"
      ]
    }
  ],
  "env": [
    {
      "service": "mariadb",
      "name": "MARIADB_DATABASE",
      "kind": "preset"
    },
    {
      "service": "mariadb",
      "name": "MARIADB_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "mariadb",
      "name": "MARIADB_ROOT_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "mariadb",
      "name": "MARIADB_USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install mariadb --name my-mariadb",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/mariadb/install \\\n  -d '{\n    \"name\": \"my-mariadb\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install mariadb --name my-mariadb",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain mariadb=app.example.com."
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/mariadb/install \\\n  -d '{\n    \"name\": \"my-mariadb\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
