{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f2d67030-cdea-4da3-8a64-2b99b7796058",
    "slug": "rocketchat-cms",
    "name": "Rocket.Chat CMS [Updated Sep '26]",
    "description": "Rocket.Chat [Sep '26] (Real-Time Team Chat, Slack Alternative) Self Host",
    "url": "https://railway.com/deploy/rocketchat-cms",
    "upstream": {
      "repo_url": "https://github.com/shruti060701/rocketchat-railway"
    }
  },
  "services": [
    {
      "name": "rocketchat-railway",
      "source": {
        "repo": "https://github.com/shruti060701/rocketchat-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "independent-reverence",
      "source": {
        "repo": "https://github.com/shruti060701/rocketchat-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "ROOT_URL",
      "service": "rocketchat-railway",
      "description": "Public URL this instance is reachable at. **Generate the domain BEFORE setting this**, or it resolves to `https://` with no host and crashes the app on boot.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MONGO_URL",
      "service": "rocketchat-railway",
      "description": "MongoDB connection string, must include the replica set name. Confirmed live resolves to `mongodb://independent-reverence.railway.internal:27017/rocketchat?replicaSet=rs0`.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DEPLOY_METHOD",
      "service": "rocketchat-railway",
      "description": "Tells Rocket.Chat it's running via Docker, matches the official reference compose.",
      "secret": false,
      "strategy": "default",
      "default": "docker"
    },
    {
      "key": "MONGODB_ADVERTISED_HOSTNAME",
      "service": "independent-reverence",
      "description": "Hostname the replica set member is registered under. Confirmed live resolves to `independent-reverence.railway.internal`. Must be reachable from the separate Rocket.Chat container, not `localhost`.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rocketchat-cms"
      }
    },
    "cli": "railway deploy --template rocketchat-cms",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f2d67030-cdea-4da3-8a64-2b99b7796058",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3dd6ef1f-e54b-4376-8313-02430bf5c7e7": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rocket-chat.svg",
                  "name": "rocketchat-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/info",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/rocketchat-railway",
                    "rootDirectory": "/rocketchat"
                  },
                  "variables": {
                    "ROOT_URL": {
                      "isOptional": false,
                      "description": "Public URL this instance is reachable at. **Generate the domain BEFORE setting this**, or it resolves to `https://` with no host and crashes the app on boot.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "MongoDB connection string, must include the replica set name. Confirmed live resolves to `mongodb://independent-reverence.railway.internal:27017/rocketchat?replicaSet=rs0`.",
                      "defaultValue": "mongodb://${{independent-reverence.RAILWAY_PRIVATE_DOMAIN}}:27017/rocketchat?replicaSet=rs0"
                    },
                    "DEPLOY_METHOD": {
                      "isOptional": true,
                      "description": "Tells Rocket.Chat it's running via Docker, matches the official reference compose.",
                      "defaultValue": "docker"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "ed7bcb78-4558-426a-89ac-a74855d2fdda": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "independent-reverence",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/rocketchat-railway",
                    "rootDirectory": "/mongodb"
                  },
                  "variables": {
                    "MONGODB_ADVERTISED_HOSTNAME": {
                      "isOptional": false,
                      "description": "Hostname the replica set member is registered under. Confirmed live resolves to `independent-reverence.railway.internal`. Must be reachable from the separate Rocket.Chat container, not `localhost`.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  },
                  "volumeMounts": {
                    "ed7bcb78-4558-426a-89ac-a74855d2fdda": {
                      "mountPath": "/data/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "rocketchat-railway",
      "method": "GET",
      "path": "/api/info",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-22T05:52:57.120Z",
  "success_rate_30d": 0.1429,
  "validation": {
    "last_run_id": "run_3cb01196a7354209accf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS"
      }
    ],
    "typical_ready_seconds": 142,
    "typical_build_seconds": 20,
    "typical_start_seconds": 42,
    "slowest_service": "rocketchat-railway"
  }
}
