{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8898a850-4602-4f21-8b93-e5210ce77777",
    "slug": "rabbitmq-cluster",
    "name": "RabbitMQ",
    "description": "Highly available AMQP message broker with per-message acks and routing",
    "url": "https://railway.com/deploy/rabbitmq-cluster",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/rabbitmq-railway"
    }
  },
  "services": [
    {
      "name": "rabbitmq-node-3",
      "source": {
        "repo": "https://github.com/gridalpha/rabbitmq-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/rabbitmq",
      "http": false
    },
    {
      "name": "rabbitmq-node-2",
      "source": {
        "repo": "https://github.com/gridalpha/rabbitmq-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/rabbitmq",
      "http": false
    },
    {
      "name": "rabbitmq",
      "source": {
        "repo": "https://github.com/gridalpha/rabbitmq-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/rabbitmq",
      "tcp_ports": [
        5672
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "rabbitmq-node-3",
      "description": "Prometheus metrics port",
      "secret": false,
      "strategy": "default",
      "default": "15692"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "rabbitmq-node-3",
      "description": "Entrypoint needs root to chown the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RABBITMQ_SEED_NODE",
      "service": "rabbitmq-node-3",
      "description": "Node that forms the cluster",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_DEFAULT_PASS",
      "service": "rabbitmq-node-3",
      "description": "Same administrator password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RABBITMQ_DEFAULT_USER",
      "service": "rabbitmq-node-3",
      "description": "Same administrator as the first node",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RABBITMQ_CLUSTER_NODES",
      "service": "rabbitmq-node-3",
      "description": "Peer list for cluster formation",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_ERLANG_COOKIE_VALUE",
      "service": "rabbitmq-node-3",
      "description": "Must match every cluster node",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "rabbitmq-node-3",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "rabbitmq-node-2",
      "description": "Prometheus metrics port",
      "secret": false,
      "strategy": "default",
      "default": "15692"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "rabbitmq-node-2",
      "description": "Entrypoint needs root to chown the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RABBITMQ_SEED_NODE",
      "service": "rabbitmq-node-2",
      "description": "Node that forms the cluster",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_DEFAULT_PASS",
      "service": "rabbitmq-node-2",
      "description": "Same administrator password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RABBITMQ_DEFAULT_USER",
      "service": "rabbitmq-node-2",
      "description": "Same administrator as the first node",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RABBITMQ_CLUSTER_NODES",
      "service": "rabbitmq-node-2",
      "description": "Peer list for cluster formation",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_ERLANG_COOKIE_VALUE",
      "service": "rabbitmq-node-2",
      "description": "Must match every cluster node",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "rabbitmq-node-2",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "rabbitmq",
      "description": "Prometheus metrics port",
      "secret": false,
      "strategy": "default",
      "default": "15692"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "rabbitmq",
      "description": "Entrypoint needs root to chown the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RABBITMQ_SEED_NODE",
      "service": "rabbitmq",
      "description": "Node that forms the cluster",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_DEFAULT_PASS",
      "service": "rabbitmq",
      "description": "First administrator password",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RABBITMQ_DEFAULT_USER",
      "service": "rabbitmq",
      "description": "First administrator username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RABBITMQ_CLUSTER_NODES",
      "service": "rabbitmq",
      "description": "Peer list for cluster formation",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_ERLANG_COOKIE_VALUE",
      "service": "rabbitmq",
      "description": "Shared cluster authentication secret",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "rabbitmq",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rabbitmq-cluster"
      }
    },
    "cli": "railway deploy --template rabbitmq-cluster",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8898a850-4602-4f21-8b93-e5210ce77777",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0e2c70f8-1713-4aed-917a-b3481b3d5aa8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rabbitmq.svg",
                  "name": "rabbitmq-node-3",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/rabbitmq-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Prometheus metrics port",
                      "defaultValue": "15692"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Entrypoint needs root to chown the volume",
                      "defaultValue": "0"
                    },
                    "RABBITMQ_SEED_NODE": {
                      "isOptional": false,
                      "description": "Node that forms the cluster",
                      "defaultValue": "${{rabbitmq.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RABBITMQ_DEFAULT_PASS": {
                      "isOptional": false,
                      "description": "Same administrator password",
                      "defaultValue": "${{rabbitmq.RABBITMQ_DEFAULT_PASS}}"
                    },
                    "RABBITMQ_DEFAULT_USER": {
                      "isOptional": false,
                      "description": "Same administrator as the first node",
                      "defaultValue": "${{rabbitmq.RABBITMQ_DEFAULT_USER}}"
                    },
                    "RABBITMQ_CLUSTER_NODES": {
                      "isOptional": false,
                      "description": "Peer list for cluster formation",
                      "defaultValue": "${{rabbitmq.RAILWAY_PRIVATE_DOMAIN}},${{rabbitmq-node-2.RAILWAY_PRIVATE_DOMAIN}},${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RABBITMQ_ERLANG_COOKIE_VALUE": {
                      "isOptional": false,
                      "description": "Must match every cluster node",
                      "defaultValue": "${{rabbitmq.RABBITMQ_ERLANG_COOKIE_VALUE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "volumeMounts": {
                    "0e2c70f8-1713-4aed-917a-b3481b3d5aa8": {
                      "mountPath": "/var/lib/rabbitmq"
                    }
                  }
                },
                "2a14db13-58c1-4cb1-88b1-17dc690bf0a4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rabbitmq.svg",
                  "name": "rabbitmq-node-2",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/rabbitmq-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Prometheus metrics port",
                      "defaultValue": "15692"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Entrypoint needs root to chown the volume",
                      "defaultValue": "0"
                    },
                    "RABBITMQ_SEED_NODE": {
                      "isOptional": false,
                      "description": "Node that forms the cluster",
                      "defaultValue": "${{rabbitmq.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RABBITMQ_DEFAULT_PASS": {
                      "isOptional": false,
                      "description": "Same administrator password",
                      "defaultValue": "${{rabbitmq.RABBITMQ_DEFAULT_PASS}}"
                    },
                    "RABBITMQ_DEFAULT_USER": {
                      "isOptional": false,
                      "description": "Same administrator as the first node",
                      "defaultValue": "${{rabbitmq.RABBITMQ_DEFAULT_USER}}"
                    },
                    "RABBITMQ_CLUSTER_NODES": {
                      "isOptional": false,
                      "description": "Peer list for cluster formation",
                      "defaultValue": "${{rabbitmq.RAILWAY_PRIVATE_DOMAIN}},${{RAILWAY_PRIVATE_DOMAIN}},${{rabbitmq-node-3.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RABBITMQ_ERLANG_COOKIE_VALUE": {
                      "isOptional": false,
                      "description": "Must match every cluster node",
                      "defaultValue": "${{rabbitmq.RABBITMQ_ERLANG_COOKIE_VALUE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "volumeMounts": {
                    "2a14db13-58c1-4cb1-88b1-17dc690bf0a4": {
                      "mountPath": "/var/lib/rabbitmq"
                    }
                  }
                },
                "7495cb8c-afa4-4066-9e30-8f78c41f7170": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rabbitmq.svg",
                  "name": "rabbitmq",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/rabbitmq-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Prometheus metrics port",
                      "defaultValue": "15692"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Entrypoint needs root to chown the volume",
                      "defaultValue": "0"
                    },
                    "RABBITMQ_SEED_NODE": {
                      "isOptional": false,
                      "description": "Node that forms the cluster",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RABBITMQ_DEFAULT_PASS": {
                      "isOptional": false,
                      "description": "First administrator password",
                      "defaultValue": "{{RABBITMQ_DEFAULT_PASS}}"
                    },
                    "RABBITMQ_DEFAULT_USER": {
                      "isOptional": false,
                      "description": "First administrator username",
                      "defaultValue": "admin"
                    },
                    "RABBITMQ_CLUSTER_NODES": {
                      "isOptional": false,
                      "description": "Peer list for cluster formation",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}},${{rabbitmq-node-2.RAILWAY_PRIVATE_DOMAIN}},${{rabbitmq-node-3.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RABBITMQ_ERLANG_COOKIE_VALUE": {
                      "isOptional": false,
                      "description": "Shared cluster authentication secret",
                      "defaultValue": "{{RABBITMQ_ERLANG_COOKIE_VALUE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5672": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:15672": {
                        "port": 15672
                      }
                    }
                  },
                  "volumeMounts": {
                    "7495cb8c-afa4-4066-9e30-8f78c41f7170": {
                      "mountPath": "/var/lib/rabbitmq"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T14:36:20.957Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6ca474c6e1644c338be0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 111,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "rabbitmq-node-2"
  }
}
