{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0e8db238-326d-47da-ae1f-3120e8aca8d3",
    "slug": "instatic",
    "name": "Instatic",
    "description": "Self-hosted visual CMS with AI page builder for static sites",
    "url": "https://railway.com/deploy/instatic",
    "upstream": {
      "image": "ghcr.io/corebunch/instatic"
    }
  },
  "services": [
    {
      "name": "instatic",
      "source": {
        "image": "ghcr.io/corebunch/instatic"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "instatic",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "STATIC_DIR",
      "service": "instatic",
      "description": "Provide a value for STATIC_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/dist"
    },
    {
      "key": "UPLOADS_DIR",
      "service": "instatic",
      "description": "Provide a value for UPLOADS_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/storage/uploads"
    },
    {
      "key": "DATABASE_URL",
      "service": "instatic",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:/app/storage/data/cms.db"
    },
    {
      "key": "PUBLIC_ORIGIN",
      "service": "instatic",
      "description": "Provide a value for PUBLIC_ORIGIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "instatic",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "INSTATIC_SECRET_KEY",
      "service": "instatic",
      "description": "Provide a value for INSTATIC_SECRET_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "instatic"
      }
    },
    "cli": "railway deploy --template instatic",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0e8db238-326d-47da-ae1f-3120e8aca8d3",
            "serializedConfig": {
              "services": {
                "62771641-05f2-4e08-b084-8ea56e97207c": {
                  "icon": "https://raw.githubusercontent.com/CoreBunch/Instatic/4a6d4403925db15977e0e5af2a1b8f720f07334a/public/favicon.svg",
                  "name": "instatic",
                  "source": {
                    "image": "ghcr.io/corebunch/instatic"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "STATIC_DIR": {
                      "defaultValue": "/app/dist"
                    },
                    "UPLOADS_DIR": {
                      "defaultValue": "/app/storage/uploads"
                    },
                    "DATABASE_URL": {
                      "defaultValue": "sqlite:/app/storage/data/cms.db"
                    },
                    "PUBLIC_ORIGIN": {
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "INSTATIC_SECRET_KEY": {
                      "defaultValue": "{{INSTATIC_SECRET_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "62771641-05f2-4e08-b084-8ea56e97207c": {
                      "mountPath": "/app/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T22:14:37.505Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T08:30:28.630Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8cc8b29048514d0bb28d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 109,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "instatic"
  }
}
