{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b30f4cc3-d7e7-4296-b06c-18c3c3ba2210",
    "slug": "daring-analysis-3",
    "name": "daring-analysis",
    "description": "Single-tenant AgentHook with Railway MySQL and ongoing admin-secret login.",
    "url": "https://railway.com/deploy/daring-analysis-3",
    "upstream": {
      "repo_url": "https://github.com/abhinaviitg18/webhook_listener"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "agenthook",
      "source": {
        "repo": "https://github.com/abhinaviitg18/webhook_listener"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Provide a value for MYSQL_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "COMMERCE_MYSQL_DSN",
      "service": "agenthook",
      "description": "Provide a value for COMMERCE_MYSQL_DSN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SINGLE_TENANT_OWNER_EMAIL",
      "service": "agenthook",
      "description": "Provide a value for SINGLE_TENANT_OWNER_EMAIL.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SINGLE_TENANT_ADMIN_SECRET",
      "service": "agenthook",
      "description": "Provide a value for SINGLE_TENANT_ADMIN_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "daring-analysis-3"
      }
    },
    "cli": "railway deploy --template daring-analysis-3",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b30f4cc3-d7e7-4296-b06c-18c3c3ba2210",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "84b1066f-c0ef-4f0c-bd7c-01f86210d259": {
                  "icon": null,
                  "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": {
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "84b1066f-c0ef-4f0c-bd7c-01f86210d259": {
                      "mountPath": "/var/lib/mysql"
                    }
                  },
                  "haTemplateCode": "mysql-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "MySQL Replicas",
                      "options": [
                        2,
                        4,
                        6,
                        8
                      ],
                      "nodeLabel": "MySQL",
                      "description": "Requires odd count for quorum",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your MySQL instance to an HA cluster with Group Replication failover and HAProxy routing to the primary.",
                    "supportedImageMajorVersions": [
                      8,
                      9
                    ]
                  }
                },
                "f2ff8216-5a89-4be9-bd7a-3c5c9b81e5da": {
                  "icon": null,
                  "name": "agenthook",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/abhinaviitg18/webhook_listener",
                    "rootDirectory": null
                  },
                  "variables": {
                    "COMMERCE_MYSQL_DSN": {
                      "isOptional": false,
                      "defaultValue": "root:${{MySQL.MYSQL_ROOT_PASSWORD}}@tcp(${{MySQL.RAILWAY_PRIVATE_DOMAIN}}:3306)/railway?parseTime=true"
                    },
                    "SINGLE_TENANT_OWNER_EMAIL": {
                      "isOptional": false,
                      "defaultValue": "{{SINGLE_TENANT_OWNER_EMAIL}}"
                    },
                    "SINGLE_TENANT_ADMIN_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{MySQL.MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T04:14:46.774Z",
  "generator_version": "0.1.0"
}
