{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f3052647-6c95-4c7a-a833-ef46e01950e9",
    "slug": "fastapi-fullstack-mysql-verify",
    "name": "fastapi-fullstack-mysql",
    "description": "One click deploy and Host official full stack FastAPI template with mysql",
    "url": "https://railway.com/deploy/fastapi-fullstack-mysql-verify",
    "upstream": {
      "repo_url": "https://github.com/lNamelessl/fastapi-fullstack-mysql"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "backend",
      "source": {
        "repo": "https://github.com/lNamelessl/fastapi-fullstack-mysql"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "db port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "change to desired username",
      "secret": false,
      "strategy": "default",
      "default": "user"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "db url",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "sql db",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "sql db",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "root user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECRET_KEY",
      "service": "backend",
      "description": "change to desired secret key",
      "secret": true,
      "strategy": "default",
      "default": "secret"
    },
    {
      "key": "DATABASE_URL",
      "service": "backend",
      "description": "db url",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PROJECT_NAME",
      "service": "backend",
      "description": "change to desired project name",
      "secret": false,
      "strategy": "default",
      "default": "full stack fastapi"
    },
    {
      "key": "FIRST_SUPERUSER",
      "service": "backend",
      "description": "change to desired first super user email",
      "secret": false,
      "strategy": "default",
      "default": "user@example.com"
    },
    {
      "key": "FIRST_SUPERUSER_PASSWORD",
      "service": "backend",
      "description": "change to the desired password",
      "secret": true,
      "strategy": "default",
      "default": "password123"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "fastapi-fullstack-mysql-verify"
      }
    },
    "cli": "railway deploy --template fastapi-fullstack-mysql-verify",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f3052647-6c95-4c7a-a833-ef46e01950e9",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "af4e059b-ad89-41b3-b20a-f3c50a575bad": {
                  "icon": "https://devicons.railway.app/i/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": true,
                      "description": "host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": true,
                      "description": "db port",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "MYSQLUSER": {
                      "isOptional": true,
                      "description": "change to desired username",
                      "defaultValue": "user"
                    },
                    "MYSQL_URL": {
                      "isOptional": true,
                      "description": "db url",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": true,
                      "description": "sql db",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": true,
                      "description": "password",
                      "defaultValue": "${{MYSQL_ROOT_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": true,
                      "description": "sql db",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": true,
                      "description": "root user password",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "af4e059b-ad89-41b3-b20a-f3c50a575bad": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "baea3e8b-6c61-4bff-a7e8-4b29a01d3cad": {
                  "icon": null,
                  "name": "backend",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "lNamelessl/fastapi-fullstack-mysql",
                    "rootDirectory": null
                  },
                  "variables": {
                    "SECRET_KEY": {
                      "isOptional": true,
                      "description": "change to desired secret key",
                      "defaultValue": "secret"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "db url",
                      "defaultValue": "${{MySQL.MYSQL_URL}}"
                    },
                    "PROJECT_NAME": {
                      "isOptional": true,
                      "description": "change to desired project name",
                      "defaultValue": "full stack fastapi"
                    },
                    "FIRST_SUPERUSER": {
                      "isOptional": true,
                      "description": "change to desired first super user email",
                      "defaultValue": "user@example.com"
                    },
                    "FIRST_SUPERUSER_PASSWORD": {
                      "isOptional": true,
                      "description": "change to the desired password",
                      "defaultValue": "password123"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "backend",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T10:14:44.639Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T19:53:31.224Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_6d4ef3d6b58c4264a381",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS"
      }
    ]
  }
}
