{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ae95c7fc-a486-4f5d-8069-6d0cee3507a8",
    "slug": "ghost-cms",
    "name": "Ghost",
    "description": "Substack alternative. Publishing, email newsletters and Stripe memberships",
    "url": "https://railway.com/deploy/ghost-cms",
    "upstream": {
      "image": "ghost:6"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Ghost",
      "source": {
        "image": "ghost:6"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ghost/content",
      "http": true
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:8"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "url",
      "service": "Ghost",
      "description": "Public base URL of the site",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "Ghost",
      "description": "Port Railway routes traffic to",
      "secret": false,
      "strategy": "default",
      "default": "2368"
    },
    {
      "key": "mail__from",
      "service": "Ghost",
      "description": "Default from address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "Ghost",
      "description": "Cap the Node heap",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=3072"
    },
    {
      "key": "server__host",
      "service": "Ghost",
      "description": "Dual-stack listen address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "server__port",
      "service": "Ghost",
      "description": "Application listen port",
      "secret": false,
      "strategy": "default",
      "default": "2368"
    },
    {
      "key": "logging__level",
      "service": "Ghost",
      "description": "Log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "database__client",
      "service": "Ghost",
      "description": "Mapped to the mysql2 driver",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "database__pool__max",
      "service": "Ghost",
      "description": "Maximum pooled connections",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "database__pool__min",
      "service": "Ghost",
      "description": "Minimum pooled connections",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "logging__transports",
      "service": "Ghost",
      "description": "Send logs to stdout, not a file",
      "secret": false,
      "strategy": "default",
      "default": "[\"stdout\"]"
    },
    {
      "key": "adapters__cache__active",
      "service": "Ghost",
      "description": "Async caches use Redis",
      "secret": false,
      "strategy": "default",
      "default": "Redis"
    },
    {
      "key": "database__connection__host",
      "service": "Ghost",
      "description": "Private MySQL hostname",
      "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": "Database-scoped MySQL user",
      "secret": false,
      "strategy": "default",
      "default": "ghost"
    },
    {
      "key": "adapters__cache__Redis__ttl",
      "service": "Ghost",
      "description": "Cache entry lifetime in seconds",
      "secret": false,
      "strategy": "default",
      "default": "3600"
    },
    {
      "key": "adapters__cache__Redis__host",
      "service": "Ghost",
      "description": "Private Redis hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "adapters__cache__Redis__port",
      "service": "Ghost",
      "description": "Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "database__connection__database",
      "service": "Ghost",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "ghost"
    },
    {
      "key": "database__connection__password",
      "service": "Ghost",
      "description": "Password for the ghost user",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "adapters__cache__Redis__password",
      "service": "Ghost",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "adapters__cache__Redis__username",
      "service": "Ghost",
      "description": "Redis username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "adapters__cache__Redis__keyPrefix",
      "service": "Ghost",
      "description": "Namespace for cache keys",
      "secret": true,
      "strategy": "default",
      "default": "ghost:"
    },
    {
      "key": "adapters__cache__settings__adapter",
      "service": "Ghost",
      "description": "Settings cache must stay in-process",
      "secret": false,
      "strategy": "default",
      "default": "MemoryCache"
    },
    {
      "key": "adapters__cache__Redis__getTimeoutMilliseconds",
      "service": "Ghost",
      "description": "Slow reads degrade to a cache miss",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "MYSQL_USER",
      "service": "MySQL",
      "description": "Database-scoped application user",
      "secret": false,
      "strategy": "default",
      "default": "ghost"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "ghost"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "MySQL",
      "description": "Password for the ghost user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "MySQL superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ghost-cms"
      }
    },
    "cli": "railway deploy --template ghost-cms",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ae95c7fc-a486-4f5d-8069-6d0cee3507a8",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "308d8ad1-9f78-4939-858a-dc33ce07a982": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Standard Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default ACL user created on first boot",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the generated password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the default user",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "308d8ad1-9f78-4939-858a-dc33ce07a982": {
                      "mountPath": "/data"
                    }
                  }
                },
                "519cf074-5299-4155-b5fb-2b8eab22d29c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/ghost-light.png",
                  "name": "Ghost",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghost:6"
                  },
                  "variables": {
                    "url": {
                      "isOptional": false,
                      "description": "Public base URL of the site",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes traffic to",
                      "defaultValue": "2368"
                    },
                    "mail__from": {
                      "isOptional": false,
                      "description": "Default from address",
                      "defaultValue": "noreply@${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Cap the Node heap",
                      "defaultValue": "--max-old-space-size=3072"
                    },
                    "server__host": {
                      "isOptional": false,
                      "description": "Dual-stack listen address",
                      "defaultValue": "::"
                    },
                    "server__port": {
                      "isOptional": false,
                      "description": "Application listen port",
                      "defaultValue": "2368"
                    },
                    "logging__level": {
                      "isOptional": false,
                      "description": "Log verbosity",
                      "defaultValue": "info"
                    },
                    "database__client": {
                      "isOptional": false,
                      "description": "Mapped to the mysql2 driver",
                      "defaultValue": "mysql"
                    },
                    "database__pool__max": {
                      "isOptional": false,
                      "description": "Maximum pooled connections",
                      "defaultValue": "10"
                    },
                    "database__pool__min": {
                      "isOptional": false,
                      "description": "Minimum pooled connections",
                      "defaultValue": "0"
                    },
                    "logging__transports": {
                      "isOptional": false,
                      "description": "Send logs to stdout, not a file",
                      "defaultValue": "[\"stdout\"]"
                    },
                    "adapters__cache__active": {
                      "isOptional": false,
                      "description": "Async caches use Redis",
                      "defaultValue": "Redis"
                    },
                    "database__connection__host": {
                      "isOptional": false,
                      "description": "Private MySQL hostname",
                      "defaultValue": "${{MySQL.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "database__connection__port": {
                      "isOptional": false,
                      "description": "MySQL port",
                      "defaultValue": "3306"
                    },
                    "database__connection__user": {
                      "isOptional": false,
                      "description": "Database-scoped MySQL user",
                      "defaultValue": "ghost"
                    },
                    "adapters__cache__Redis__ttl": {
                      "isOptional": false,
                      "description": "Cache entry lifetime in seconds",
                      "defaultValue": "3600"
                    },
                    "adapters__cache__Redis__host": {
                      "isOptional": false,
                      "description": "Private Redis hostname",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "adapters__cache__Redis__port": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "database__connection__database": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "ghost"
                    },
                    "database__connection__password": {
                      "isOptional": false,
                      "description": "Password for the ghost user",
                      "defaultValue": "${{MySQL.MYSQL_PASSWORD}}"
                    },
                    "adapters__cache__Redis__password": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "adapters__cache__Redis__username": {
                      "isOptional": false,
                      "description": "Redis username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "adapters__cache__Redis__keyPrefix": {
                      "isOptional": false,
                      "description": "Namespace for cache keys",
                      "defaultValue": "ghost:"
                    },
                    "adapters__cache__settings__adapter": {
                      "isOptional": false,
                      "description": "Settings cache must stay in-process",
                      "defaultValue": "MemoryCache"
                    },
                    "adapters__cache__Redis__getTimeoutMilliseconds": {
                      "isOptional": false,
                      "description": "Slow reads degrade to a cache miss",
                      "defaultValue": "1000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:2368": {
                        "port": 2368
                      }
                    }
                  },
                  "volumeMounts": {
                    "519cf074-5299-4155-b5fb-2b8eab22d29c": {
                      "mountPath": "/var/lib/ghost/content"
                    }
                  }
                },
                "c8cea7b4-17d5-42b4-bd50-3a31f84f52c1": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/mysql.png",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'M=$(cat /sys/fs/cgroup/memory.max 2>/dev/null); expr \"$M\" + 0 >/dev/null 2>&1 || M=2147483648; B=$(expr $M / 2); if [ $B -lt 134217728 ]; then B=134217728; fi; echo \"boot: cgroup_mem=$M innodb_buffer_pool_size=$B\"; exec docker-entrypoint.sh mysqld --innodb-buffer-pool-size=$B'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8"
                  },
                  "variables": {
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Database-scoped application user",
                      "defaultValue": "ghost"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "ghost"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the ghost user",
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MySQL superuser password",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "c8cea7b4-17d5-42b4-bd50-3a31f84f52c1": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T13:51:57.952Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a67438c82ff0425ba76d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 188,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "Ghost"
  }
}
