{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c611e1c3-36a3-4d0a-bc70-664ea732be67",
    "slug": "campfire-chat",
    "name": "Campfire",
    "description": "Group chat for teams, with rooms, direct messages and file sharing",
    "url": "https://railway.com/deploy/campfire-chat",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/campfire-railway"
    }
  },
  "services": [
    {
      "name": "campfire",
      "source": {
        "repo": "https://github.com/gridalpha/campfire-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/rails/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "campfire",
      "description": "Thruster HTTP listener port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SKIP_TELEMETRY",
      "service": "campfire",
      "description": "Disables Sentry error reporting",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILS_LOG_LEVEL",
      "service": "campfire",
      "description": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "campfire",
      "description": "Rails session and cookie signing key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CAMPFIRE_ADMIN_NAME",
      "service": "campfire",
      "description": "First admin's display name",
      "secret": false,
      "strategy": "default",
      "default": "Administrator"
    },
    {
      "key": "CAMPFIRE_ADMIN_PASSWORD",
      "service": "campfire",
      "description": "First admin's password; change after signing in",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "campfire",
      "description": "Health check window on first boot",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "campfire",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "campfire-chat"
      }
    },
    "cli": "railway deploy --template campfire-chat",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c611e1c3-36a3-4d0a-bc70-664ea732be67",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "40ef10d1-4d17-4706-8f54-3acfa44932e6": {
                  "icon": "https://cdn.jsdelivr.net/gh/basecamp/once-campfire@977cbcd135783e09d631301bc39cbb4e7961ec4e/app/assets/images/logos/app-icon-192.png",
                  "name": "campfire",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/up",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/campfire-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Thruster HTTP listener port",
                      "defaultValue": "8080"
                    },
                    "SKIP_TELEMETRY": {
                      "isOptional": true,
                      "description": "Disables Sentry error reporting",
                      "defaultValue": "true"
                    },
                    "RAILS_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Application log verbosity",
                      "defaultValue": "info"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails session and cookie signing key",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "CAMPFIRE_ADMIN_NAME": {
                      "isOptional": true,
                      "description": "First admin's display name",
                      "defaultValue": "Administrator"
                    },
                    "CAMPFIRE_ADMIN_EMAIL": {
                      "isOptional": true,
                      "description": "First admin's email; blank derives one from the domain",
                      "defaultValue": ""
                    },
                    "CAMPFIRE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First admin's password; change after signing in",
                      "defaultValue": "{{CAMPFIRE_ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window on first boot",
                      "defaultValue": "300"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "40ef10d1-4d17-4706-8f54-3acfa44932e6": {
                      "mountPath": "/rails/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "campfire",
      "method": "GET",
      "path": "/up",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T20:30:35.292Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9e69fb6573b14d44a398",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 109,
    "typical_build_seconds": 71,
    "typical_start_seconds": 20,
    "slowest_service": "campfire"
  }
}
