{
  "id": "mysql",
  "name": "MySQL",
  "slogan": "The MySQL Community 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 mysql:3306.",
  "category": "Database Tools",
  "categorySlug": "database-tools",
  "tags": [
    "mysql",
    "single-container"
  ],
  "license": {
    "spdx": "GPL-2.0-only",
    "class": "copyleft"
  },
  "memoryMiB": 768,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install mysql --name my-mysql",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/mysql/",
  "docsUrl": "https://dev.mysql.com/doc/refman/8.4/en/",
  "sourceRepo": "https://github.com/mysql/mysql-server",
  "markdownUrl": "https://levelrail.com/templates/mysql.md",
  "jsonUrl": "https://levelrail.com/templates/mysql.json",
  "indexable": true,
  "description": "The MySQL Community 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 mysql:3306.",
  "pinnedTag": "8.4.13",
  "licenseUrl": "https://github.com/mysql/mysql-server/blob/trunk/LICENSE",
  "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": "mysql",
      "image": "mysql",
      "tag": "8.4.13",
      "ports": [
        3306
      ],
      "volumes": [
        "mysql_data -> /var/lib/mysql"
      ]
    }
  ],
  "env": [
    {
      "service": "mysql",
      "name": "MYSQL_DATABASE",
      "kind": "preset"
    },
    {
      "service": "mysql",
      "name": "MYSQL_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "mysql",
      "name": "MYSQL_ROOT_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "mysql",
      "name": "MYSQL_USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install mysql --name my-mysql",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/mysql/install \\\n  -d '{\n    \"name\": \"my-mysql\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install mysql --name my-mysql",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain mysql=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/mysql/install \\\n  -d '{\n    \"name\": \"my-mysql\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
