{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dfb524b7-94b8-4d24-bcb1-101bf11ba69e",
    "slug": "ghostdocker",
    "name": "ghost_docker",
    "description": "A template for ghost with mysql on railway that uses api for email delivery",
    "url": "https://railway.com/deploy/ghostdocker",
    "upstream": {
      "image": "ghost:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "MySQL-bZW4",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "ghost:latest",
      "source": {
        "image": "ghost:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL-bZW4",
      "description": "links to mysql on same project",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "url",
      "service": "ghost:latest",
      "description": "your hosted domain url eg: https://peakberg.com",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PORT",
      "service": "ghost:latest",
      "description": "port",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "NODE_ENV",
      "service": "ghost:latest",
      "description": "specify production or development",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "mail__from",
      "service": "ghost:latest",
      "description": "ur registered mail address on mailgun or else where",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "mail__transport",
      "service": "ghost:latest",
      "description": "Ghost uses Mailgun in the nodemailer internally",
      "secret": false,
      "strategy": "default",
      "default": "Mailgun"
    },
    {
      "key": "database__client",
      "service": "ghost:latest",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "database__connection__host",
      "service": "ghost:latest",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "database__connection__port",
      "service": "ghost:latest",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "database__connection__user",
      "service": "ghost:latest",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "mail__options__auth__apiKey",
      "service": "ghost:latest",
      "description": "generate an api key on mailgun",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "mail__options__auth__domain",
      "service": "ghost:latest",
      "description": "ur domain or provided in mailgun api setup",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "database__connection__database",
      "service": "ghost:latest",
      "description": "links to mysql on same project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "database__connection__password",
      "service": "ghost:latest",
      "description": "links to mysql on same project",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ghostdocker"
      }
    },
    "cli": "railway deploy --template ghostdocker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dfb524b7-94b8-4d24-bcb1-101bf11ba69e",
            "serializedConfig": {
              "services": {
                "a2fd56d8-2be6-4bf8-835e-6421d59f54dd": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL-bZW4",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "{{MYSQLPORT}}"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "{{MYSQLUSER}}"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "{{MYSQL_URL}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "${{MYSQL_ROOT_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "{{MYSQL_DATABASE}}"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "{{MYSQL_PUBLIC_URL}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "a2fd56d8-2be6-4bf8-835e-6421d59f54dd": {
                      "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
                    ]
                  }
                },
                "ab849aaf-842c-4f74-b16e-4ba280ab6428": {
                  "icon": "https://res.cloudinary.com/dpzorccnu/image/upload/v1759786857/ghost-logo-dark_no4g1y.png",
                  "name": "ghost:latest",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/"
                  },
                  "source": {
                    "image": "ghost:latest"
                  },
                  "variables": {
                    "url": {
                      "isOptional": false,
                      "description": "your hosted domain url eg: https://peakberg.com",
                      "defaultValue": "{{url}}"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "port",
                      "defaultValue": "{{PORT}}"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "specify production or development",
                      "defaultValue": "{{NODE_ENV}}"
                    },
                    "mail__from": {
                      "isOptional": false,
                      "description": "ur registered mail address on mailgun or else where",
                      "defaultValue": "{{mail__from}}"
                    },
                    "mail__transport": {
                      "isOptional": false,
                      "description": "Ghost uses Mailgun in the nodemailer internally",
                      "defaultValue": "Mailgun"
                    },
                    "database__client": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "{{database__client}}"
                    },
                    "database__connection__host": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "${{MySQL-bZW4.MYSQLHOST}}"
                    },
                    "database__connection__port": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "${{MySQL-bZW4.MYSQLPORT}}"
                    },
                    "database__connection__user": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "${{MySQL-bZW4.MYSQLUSER}}"
                    },
                    "mail__options__auth__apiKey": {
                      "isOptional": false,
                      "description": "generate an api key on mailgun",
                      "defaultValue": "{{mail__options__auth__apiKey}}"
                    },
                    "mail__options__auth__domain": {
                      "isOptional": false,
                      "description": "ur domain or provided in mailgun api setup",
                      "defaultValue": "{{mail__options__auth__domain}}"
                    },
                    "database__connection__database": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "${{MySQL-bZW4.MYSQL_DATABASE}}"
                    },
                    "database__connection__password": {
                      "isOptional": false,
                      "description": "links to mysql on same project",
                      "defaultValue": "${{MySQL-bZW4.MYSQLPASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ghost:latest",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0"
}
