{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6cfa0ac5-fd6e-4057-8031-ff9208ad8393",
    "slug": "AGPkfv",
    "name": "Ghost",
    "description": "Deploy Ghost to Railway with ease. Almost no configuration needed.",
    "url": "https://railway.com/deploy/AGPkfv",
    "upstream": {
      "image": "ghost:latest"
    }
  },
  "services": [
    {
      "name": "db",
      "source": {
        "image": "mysql:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "ghost",
      "source": {
        "image": "ghost:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ghost/content",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "db",
      "description": "Provide a value for MYSQL_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "default",
      "default": "MyStrongPassword"
    },
    {
      "key": "url",
      "service": "ghost",
      "description": "The URL via which the blog will be accessible. Example: https://myblog.com",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "ghost",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "2368"
    },
    {
      "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": "default",
      "default": "db"
    },
    {
      "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": "It's to be advised to change this password to one more complex. Make sure you update the password on the database service to the same string you enter here.",
      "secret": true,
      "strategy": "default",
      "default": "MyStrongPassword"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "AGPkfv"
      }
    },
    "cli": "railway deploy --template AGPkfv",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6cfa0ac5-fd6e-4057-8031-ff9208ad8393",
            "serializedConfig": {
              "services": {
                "10215be6-081e-489e-95a9-be70581fc599": {
                  "icon": null,
                  "name": "db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "mysql:8.0"
                  },
                  "variables": {
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "MyStrongPassword"
                    }
                  },
                  "volumeMounts": {
                    "10215be6-081e-489e-95a9-be70581fc599": {
                      "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
                    ]
                  }
                },
                "ad5cfc90-1b80-4442-8059-c80cfd369b05": {
                  "icon": null,
                  "name": "ghost",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghost:latest"
                  },
                  "variables": {
                    "url": {
                      "isOptional": false,
                      "description": "The URL via which the blog will be accessible. Example: https://myblog.com",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "2368"
                    },
                    "database__client": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "mysql"
                    },
                    "database__connection__host": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "db"
                    },
                    "database__connection__user": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "root"
                    },
                    "database__connection__database": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "ghost"
                    },
                    "database__connection__password": {
                      "isOptional": false,
                      "description": "It's to be advised to change this password to one more complex. Make sure you update the password on the database service to the same string you enter here.",
                      "defaultValue": "MyStrongPassword"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "ad5cfc90-1b80-4442-8059-c80cfd369b05": {
                      "mountPath": "/var/lib/ghost/content"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T10:04:27.752Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e795b4cdb6eb4f89aefe",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 103,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "ghost"
  }
}
