{
  "id": "mysql-phpmyadmin",
  "name": "MySQL with phpMyAdmin",
  "slogan": "A MySQL 8.4 server paired with the phpMyAdmin web console, already wired together. The database is not published on the host, so other services in this project reach it at db:3306. Sign in to phpMyAdmin as root with the generated root password.",
  "category": "Database Tools",
  "categorySlug": "database-tools",
  "tags": [
    "mysql",
    "multi-service"
  ],
  "license": {
    "spdx": "GPL-2.0-or-later",
    "class": "copyleft"
  },
  "memoryMiB": 768,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install mysql-phpmyadmin --name my-mysql-phpmyadmin",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/mysql-phpmyadmin/",
  "docsUrl": "https://docs.phpmyadmin.net/en/latest/setup.html#docker",
  "sourceRepo": "https://github.com/phpmyadmin/phpmyadmin",
  "markdownUrl": "https://levelrail.com/templates/mysql-phpmyadmin.md",
  "jsonUrl": "https://levelrail.com/templates/mysql-phpmyadmin.json",
  "indexable": true,
  "description": "A MySQL 8.4 server paired with the phpMyAdmin web console, already wired together. The database is not published on the host, so other services in this project reach it at db:3306. Sign in to phpMyAdmin as root with the generated root password.",
  "pinnedTag": "8.4.13",
  "licenseUrl": "https://github.com/phpmyadmin/phpmyadmin/blob/master/LICENSE",
  "licenseClassLabel": "Copyleft license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Open the page and sign in as root with the generated root password from the app secrets."
  ],
  "services": [
    {
      "name": "db",
      "image": "mysql",
      "tag": "8.4.13",
      "ports": [],
      "volumes": [
        "mysql_data -> /var/lib/mysql"
      ]
    },
    {
      "name": "phpmyadmin",
      "image": "phpmyadmin",
      "tag": "5.2.3",
      "ports": [
        80
      ],
      "volumes": []
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "MYSQL_ROOT_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "phpmyadmin",
      "name": "PMA_HOST",
      "kind": "preset"
    },
    {
      "service": "phpmyadmin",
      "name": "PMA_PORT",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install mysql-phpmyadmin --name my-mysql-phpmyadmin",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/mysql-phpmyadmin/install \\\n  -d '{\n    \"name\": \"my-mysql-phpmyadmin\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install mysql-phpmyadmin --name my-mysql-phpmyadmin",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=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-phpmyadmin/install \\\n  -d '{\n    \"name\": \"my-mysql-phpmyadmin\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
