{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5a426439-6d43-47e7-86a7-9d4b32eb0cae",
    "slug": "phpmyadmin-mysql",
    "name": "PhpMyAdmin",
    "description": "Web interface for managing MySQL and MariaDB databases",
    "url": "https://railway.com/deploy/phpmyadmin-mysql",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/phpmyadmin-railway"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "phpmyadmin",
      "source": {
        "repo": "https://github.com/gridalpha/phpmyadmin-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/pma",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Data panel alias for the superuser",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "phpmyadmin",
      "description": "Apache listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PMA_HOST",
      "service": "phpmyadmin",
      "description": "Database server to administer",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PMA_PORT",
      "service": "phpmyadmin",
      "description": "Database server port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PMA_CONTROLPASS",
      "service": "phpmyadmin",
      "description": "Password for the pma control user",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PMA_ABSOLUTE_URI",
      "service": "phpmyadmin",
      "description": "Public base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PMA_BOOTSTRAP_USER",
      "service": "phpmyadmin",
      "description": "Account that creates configuration storage",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PMA_BLOWFISH_SECRET",
      "service": "phpmyadmin",
      "description": "Cookie encryption key, must stay stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PMA_BOOTSTRAP_PASSWORD",
      "service": "phpmyadmin",
      "description": "Password for that account",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "phpmyadmin-mysql"
      }
    },
    "cli": "railway deploy --template phpmyadmin-mysql",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5a426439-6d43-47e7-86a7-9d4b32eb0cae",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3beedf7e-f151-473f-95a2-7e0e051839ad": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Data panel alias for the superuser",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password, read by the server",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "3beedf7e-f151-473f-95a2-7e0e051839ad": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "3f8e1b92-2ea6-4e7b-893d-23a8dd141277": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/phpmyadmin.svg",
                  "name": "phpmyadmin",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/phpmyadmin-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Apache listening port",
                      "defaultValue": "8080"
                    },
                    "PMA_HOST": {
                      "isOptional": false,
                      "description": "Database server to administer",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "PMA_PORT": {
                      "isOptional": false,
                      "description": "Database server port",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "PMA_CONTROLPASS": {
                      "isOptional": false,
                      "description": "Password for the pma control user",
                      "defaultValue": "{{PMA_CONTROLPASS}}"
                    },
                    "PMA_ABSOLUTE_URI": {
                      "isOptional": false,
                      "description": "Public base URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "PMA_BOOTSTRAP_USER": {
                      "isOptional": false,
                      "description": "Account that creates configuration storage",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "PMA_BLOWFISH_SECRET": {
                      "isOptional": false,
                      "description": "Cookie encryption key, must stay stable",
                      "defaultValue": "{{PMA_BLOWFISH_SECRET}}"
                    },
                    "PMA_BOOTSTRAP_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that account",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "3f8e1b92-2ea6-4e7b-893d-23a8dd141277": {
                      "mountPath": "/pma"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T15:50:50.183Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e20dc90ebec04dfbb6aa",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 82,
    "typical_build_seconds": 37,
    "typical_start_seconds": 10,
    "slowest_service": "phpmyadmin"
  }
}
