{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0859d615-1848-447e-9618-4df2a3edb6be",
    "slug": "instatic-cms-sqlite",
    "name": "Instatic CMS - SQLite",
    "description": "Design, build and manage powerful static sites from state-of-the-art CMS",
    "url": "https://railway.com/deploy/instatic-cms-sqlite",
    "upstream": {
      "image": "ghcr.io/corebunch/instatic:latest"
    }
  },
  "services": [
    {
      "name": "corebunch/instatic:latest",
      "source": {
        "image": "ghcr.io/corebunch/instatic:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "corebunch/instatic:latest",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "STATIC_DIR",
      "service": "corebunch/instatic:latest",
      "description": "Provide a value for STATIC_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/dist"
    },
    {
      "key": "UPLOADS_DIR",
      "service": "corebunch/instatic:latest",
      "description": "Provide a value for UPLOADS_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/storage/uploads"
    },
    {
      "key": "DATABASE_URL",
      "service": "corebunch/instatic:latest",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:/app/storage/data/cms.db"
    },
    {
      "key": "PUBLIC_ORIGIN",
      "service": "corebunch/instatic:latest",
      "description": "Provide a value for PUBLIC_ORIGIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "corebunch/instatic:latest",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "INSTATIC_SECRET_KEY",
      "service": "corebunch/instatic:latest",
      "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-cms-sqlite"
      }
    },
    "cli": "railway deploy --template instatic-cms-sqlite",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0859d615-1848-447e-9618-4df2a3edb6be",
            "serializedConfig": {
              "services": {
                "25e6ac80-15a8-478a-8a13-906d334cd399": {
                  "name": "corebunch/instatic:latest",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/corebunch/instatic:latest"
                  },
                  "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": {
                    "25e6ac80-15a8-478a-8a13-906d334cd399": {
                      "mountPath": "/app/storage",
                      "backupSchedules": [
                        "DAILY",
                        "WEEKLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "corebunch/instatic:latest",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T04:49:45.934Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b2390cb57672403a8c79",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 20,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "corebunch/instatic:latest"
  }
}
