{
  "manifest_version": "1.0.0",
  "template": {
    "id": "edd8764f-bf0e-412c-a19f-4a1d1ffdd8c2",
    "slug": "ghost-publishing",
    "name": "Ghost | Publishing, Newsletters and Paid Memberships with MySQL",
    "description": "Ghost 6 blog and newsletter on MySQL, owner account ready on first boot",
    "url": "https://railway.com/deploy/ghost-publishing",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/ghost"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Ghost",
      "source": {
        "repo": "https://github.com/two-workspaces/ghost"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ghost/content",
      "http": true
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:8.4.13"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "url",
      "service": "Ghost",
      "description": "Public URL of the site. Change it after adding a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "Ghost",
      "description": "Port Ghost listens on - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "2368"
    },
    {
      "key": "GHOST_SITE_TITLE",
      "service": "Ghost",
      "description": "Site title set on first boot. Change it later in Settings.",
      "secret": false,
      "strategy": "default",
      "default": "My Ghost Site"
    },
    {
      "key": "database__client",
      "service": "Ghost",
      "description": "Ghost's database driver - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "GHOST_ADMIN_EMAIL",
      "service": "Ghost",
      "description": "Email for the owner account, created on first boot. You sign in to /ghost with it.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "logging__transports",
      "service": "Ghost",
      "description": "Log to stdout so Railway shows Ghost's logs - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "[\"stdout\"]"
    },
    {
      "key": "GHOST_ADMIN_PASSWORD",
      "service": "Ghost",
      "description": "Password for the owner account, generated at deploy time. Used once on first boot; change it in Ghost afterwards.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "database__connection__host",
      "service": "Ghost",
      "description": "MySQL host (private network)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "database__connection__port",
      "service": "Ghost",
      "description": "MySQL port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "database__connection__user",
      "service": "Ghost",
      "description": "MySQL user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "database__connection__database",
      "service": "Ghost",
      "description": "MySQL database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "database__connection__password",
      "service": "Ghost",
      "description": "MySQL password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "security__staffDeviceVerification",
      "service": "Ghost",
      "description": "Email code on sign-in from a new device. Needs working email; set to true once SMTP is configured.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MYSQL_USER",
      "service": "MySQL",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "ghost"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "ghost"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "MySQL",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_RANDOM_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root gets a random password; Ghost uses its own user - leave as is.",
      "secret": true,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "MySQL",
      "description": "Time for MySQL to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ghost-publishing"
      }
    },
    "cli": "railway deploy --template ghost-publishing",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "edd8764f-bf0e-412c-a19f-4a1d1ffdd8c2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "04ef42c4-51c5-4e33-b513-c4d2ebd2baed": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/ghost/main/icon.svg",
                  "name": "Ghost",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/ghost/api/admin/site/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/ghost",
                    "rootDirectory": null
                  },
                  "variables": {
                    "url": {
                      "isOptional": false,
                      "description": "Public URL of the site. Change it after adding a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Ghost listens on - leave as is.",
                      "defaultValue": "2368"
                    },
                    "GHOST_SITE_TITLE": {
                      "isOptional": false,
                      "description": "Site title set on first boot. Change it later in Settings.",
                      "defaultValue": "My Ghost Site"
                    },
                    "database__client": {
                      "isOptional": false,
                      "description": "Ghost's database driver - leave as is.",
                      "defaultValue": "mysql"
                    },
                    "GHOST_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email for the owner account, created on first boot. You sign in to /ghost with it.",
                      "defaultValue": "{{GHOST_ADMIN_EMAIL}}"
                    },
                    "logging__transports": {
                      "isOptional": false,
                      "description": "Log to stdout so Railway shows Ghost's logs - leave as is.",
                      "defaultValue": "[\"stdout\"]"
                    },
                    "GHOST_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the owner account, generated at deploy time. Used once on first boot; change it in Ghost afterwards.",
                      "defaultValue": "{{GHOST_ADMIN_PASSWORD}}"
                    },
                    "database__connection__host": {
                      "isOptional": false,
                      "description": "MySQL host (private network)",
                      "defaultValue": "${{MySQL.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "database__connection__port": {
                      "isOptional": false,
                      "description": "MySQL port",
                      "defaultValue": "3306"
                    },
                    "database__connection__user": {
                      "isOptional": false,
                      "description": "MySQL user",
                      "defaultValue": "${{MySQL.MYSQL_USER}}"
                    },
                    "database__connection__database": {
                      "isOptional": false,
                      "description": "MySQL database",
                      "defaultValue": "${{MySQL.MYSQL_DATABASE}}"
                    },
                    "database__connection__password": {
                      "isOptional": false,
                      "description": "MySQL password",
                      "defaultValue": "${{MySQL.MYSQL_PASSWORD}}"
                    },
                    "security__staffDeviceVerification": {
                      "isOptional": false,
                      "description": "Email code on sign-in from a new device. Needs working email; set to true once SMTP is configured.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "50d7354e-1bd9-4163-98ac-4cc53c7b6098": {
                      "mountPath": "/var/lib/ghost/content"
                    }
                  }
                },
                "cffeee9b-eafa-4a33-85b8-37b87659086e": {
                  "icon": "https://www.mysql.com/common/logos/logo-mysql-170x115.png",
                  "name": "MySQL",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --datadir=/var/lib/mysql/data --performance-schema=OFF --skip-log-bin --innodb-buffer-pool-size=64M",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8.4.13"
                  },
                  "variables": {
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "ghost"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "ghost"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    },
                    "MYSQL_RANDOM_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root gets a random password; Ghost uses its own user - leave as is.",
                      "defaultValue": "1"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for MySQL to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "3f1f793b-f241-4fd0-aad2-51243c8afcdc": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Ghost",
      "method": "GET",
      "path": "/ghost/api/admin/site/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-26T16:14:50.905Z",
  "generator_version": "0.1.0"
}
