{
  "manifest_version": "1.0.0",
  "template": {
    "id": "300e31df-039b-44d0-93d8-310eb63d4bda",
    "slug": "ghost-2",
    "name": "Ghost",
    "description": "Professional publishing platform for blogs, newsletters, and memberships.",
    "url": "https://railway.com/deploy/ghost-2",
    "upstream": {
      "image": "ghost:6.54.0"
    }
  },
  "services": [
    {
      "name": "Ghost",
      "source": {
        "image": "ghost:6.54.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ghost/content",
      "http": true
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:8.4.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "url",
      "service": "Ghost",
      "description": "Provide a value for url.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "database__client",
      "service": "Ghost",
      "description": "Provide a value for database__client.",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "database__connection__host",
      "service": "Ghost",
      "description": "Provide a value for database__connection__host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "database__connection__user",
      "service": "Ghost",
      "description": "Provide a value for database__connection__user.",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "database__connection__database",
      "service": "Ghost",
      "description": "Provide a value for database__connection__database.",
      "secret": false,
      "strategy": "default",
      "default": "ghost"
    },
    {
      "key": "database__connection__password",
      "service": "Ghost",
      "description": "Provide a value for database__connection__password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "security__staffDeviceVerification",
      "service": "Ghost",
      "description": "Provide a value for security__staffDeviceVerification.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Provide a value for MYSQL_DATABASE.",
      "secret": false,
      "strategy": "default",
      "default": "ghost"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Provide a value for MYSQL_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ghost-2"
      }
    },
    "cli": "railway deploy --template ghost-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "300e31df-039b-44d0-93d8-310eb63d4bda",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "950a0f69-114e-4fcc-bcab-d35dc91bf34a": {
                  "icon": null,
                  "name": "Ghost",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghost:6.54.0"
                  },
                  "variables": {
                    "url": {
                      "isOptional": false,
                      "defaultValue": "https://${{Ghost.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "database__client": {
                      "isOptional": false,
                      "defaultValue": "mysql"
                    },
                    "database__connection__host": {
                      "isOptional": false,
                      "defaultValue": "${{MySQL.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "database__connection__user": {
                      "isOptional": false,
                      "defaultValue": "root"
                    },
                    "database__connection__database": {
                      "isOptional": false,
                      "defaultValue": "ghost"
                    },
                    "database__connection__password": {
                      "isOptional": false,
                      "defaultValue": "${{MySQL.MYSQL_ROOT_PASSWORD}}"
                    },
                    "security__staffDeviceVerification": {
                      "isOptional": false,
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "950a0f69-114e-4fcc-bcab-d35dc91bf34a": {
                      "mountPath": "/var/lib/ghost/content"
                    }
                  }
                },
                "bfe5e3fc-4c1c-4742-b8c3-e3d73a0fa452": {
                  "icon": null,
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8.4.4"
                  },
                  "variables": {
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "defaultValue": "ghost"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "bfe5e3fc-4c1c-4742-b8c3-e3d73a0fa452": {
                      "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
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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-20T02:16:57.737Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0d872de5e1e64d04ab34",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 84,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "Ghost"
  }
}
