{
  "manifest_version": "1.0.0",
  "template": {
    "id": "32493cd7-8232-4061-9579-3842b54df3b5",
    "slug": "rabbitmq-or-just-updated-message-broker-",
    "name": "RabbitMQ | (Just Updated) Message Broker, Memory Alarm Sized to Your Container",
    "description": "RabbitMQ 4 AMQP broker + UI. Memory alarm sized to your plan, not the host.",
    "url": "https://railway.com/deploy/rabbitmq-or-just-updated-message-broker-",
    "upstream": {
      "image": "rabbitmq:4.3.6-management@sha256:cdf40d8cb363d145e377ed88d59696a42386ffe54b30125f10eb128b862eea95"
    }
  },
  "services": [
    {
      "name": "rabbitmq",
      "source": {
        "image": "rabbitmq:4.3.6-management@sha256:cdf40d8cb363d145e377ed88d59696a42386ffe54b30125f10eb128b862eea95"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/rabbitmq",
      "tcp_ports": [
        5672
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "RABBITMQ_URL",
      "service": "rabbitmq",
      "description": "Provide a value for RABBITMQ_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RABBITMQ_PRIVATE_URL",
      "service": "rabbitmq",
      "description": "Provide a value for RABBITMQ_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_DEFAULT_PASS",
      "service": "rabbitmq",
      "description": "Provide a value for RABBITMQ_DEFAULT_PASS.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RABBITMQ_DEFAULT_USER",
      "service": "rabbitmq",
      "description": "Provide a value for RABBITMQ_DEFAULT_USER.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RABBITMQ_MANAGEMENT_URL",
      "service": "rabbitmq",
      "description": "Provide a value for RABBITMQ_MANAGEMENT_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rabbitmq-or-just-updated-message-broker-"
      }
    },
    "cli": "railway deploy --template rabbitmq-or-just-updated-message-broker-",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "32493cd7-8232-4061-9579-3842b54df3b5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "480c12d3-2b7e-491b-a0e1-8c311ea79c2c": {
                  "icon": null,
                  "name": "rabbitmq",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -e; M=$(cat /sys/fs/cgroup/memory.max 2>/dev/null || echo max); case \"$M\" in \"\"|max) L=2GB; SRC=\"no cgroup memory limit visible, fallback\";; *) L=$((M*6/10)); SRC=\"60% of cgroup memory.max=$M\";; esac; printf '\\''vm_memory_high_watermark.absolute = %s\\nmanagement.tcp.ip = ::\\nmanagement_agent.disable_metrics_collector = false\\n'\\'' \"$L\" > /etc/rabbitmq/conf.d/90-railway.conf; echo \"[railway] memory high watermark $L ($SRC)\"; grep -q \" rabbitmq$\" /etc/hosts || echo \"127.0.0.1 rabbitmq\" >> /etc/hosts; echo NODENAME=rabbit@rabbitmq > /etc/rabbitmq/rabbitmq-env.conf; exec docker-entrypoint.sh rabbitmq-server'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "rabbitmq:4.3.6-management@sha256:cdf40d8cb363d145e377ed88d59696a42386ffe54b30125f10eb128b862eea95"
                  },
                  "variables": {
                    "RABBITMQ_URL": {
                      "isOptional": false,
                      "defaultValue": "amqp://${{RABBITMQ_DEFAULT_USER}}:${{RABBITMQ_DEFAULT_PASS}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "RABBITMQ_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "amqp://${{RABBITMQ_DEFAULT_USER}}:${{RABBITMQ_DEFAULT_PASS}}@${{RAILWAY_PRIVATE_DOMAIN}}:5672"
                    },
                    "RABBITMQ_DEFAULT_PASS": {
                      "isOptional": false,
                      "defaultValue": "{{RABBITMQ_DEFAULT_PASS}}"
                    },
                    "RABBITMQ_DEFAULT_USER": {
                      "isOptional": false,
                      "defaultValue": "{{RABBITMQ_DEFAULT_USER}}"
                    },
                    "RABBITMQ_MANAGEMENT_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5672": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:15672": {
                        "port": 15672
                      }
                    }
                  },
                  "volumeMounts": {
                    "480c12d3-2b7e-491b-a0e1-8c311ea79c2c": {
                      "mountPath": "/var/lib/rabbitmq"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T19:25:49.904Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5c0ed5e49e4a4cd9bd2c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 51,
    "typical_build_seconds": 0,
    "typical_start_seconds": 11,
    "slowest_service": "rabbitmq"
  }
}
