{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a9a20909-76cc-42c6-a5d4-2de9f3661cc0",
    "slug": "rabbitmq-4-message-broker-with-managemen",
    "name": "RabbitMQ 4 Message Broker with Management UI",
    "description": "AMQP broker with dashboard, metrics and persistent queues, ready to use.",
    "url": "https://railway.com/deploy/rabbitmq-4-message-broker-with-managemen",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/rabbitmq-railway"
    }
  },
  "services": [
    {
      "name": "RabbitMQ",
      "source": {
        "repo": "https://github.com/baranberkay96/rabbitmq-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/rabbitmq",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "RabbitMQ",
      "description": "Management UI port: public domain target; the healthcheck GETs / (login page, no auth needed).",
      "secret": false,
      "strategy": "default",
      "default": "15672"
    },
    {
      "key": "AMQP_URL",
      "service": "RabbitMQ",
      "description": "Alias of RABBITMQ_URL for libraries that read AMQP_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RABBITMQ_URL",
      "service": "RabbitMQ",
      "description": "AMQP URL on the private network (default vhost). Reference it as ${{RabbitMQ.RABBITMQ_URL}}.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_HOST",
      "service": "RabbitMQ",
      "description": "Private hostname for clients configured with separate host/port settings.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_PORT",
      "service": "RabbitMQ",
      "description": "AMQP port on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "5672"
    },
    {
      "key": "DISK_FREE_LIMIT",
      "service": "RabbitMQ",
      "description": "Publishers block when free disk drops below this. auto = 20% of the volume (50 MB to 2 GB), or e.g. 1GB.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "ERLANG_SCHEDULERS",
      "service": "RabbitMQ",
      "description": "Erlang scheduler threads. auto = the container CPU quota, at most 8; or a number.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "RABBITMQ_NODENAME",
      "service": "RabbitMQ",
      "description": "Fixed node name; the database folder is named after it. Do not change after the first deploy.",
      "secret": false,
      "strategy": "default",
      "default": "rabbit@localhost"
    },
    {
      "key": "MEMORY_HIGH_WATERMARK",
      "service": "RabbitMQ",
      "description": "Publishers block above this: fraction (max 0.9) of the container memory limit, or a size like 2GiB.",
      "secret": false,
      "strategy": "default",
      "default": "0.6"
    },
    {
      "key": "RABBITMQ_DEFAULT_PASS",
      "service": "RabbitMQ",
      "description": "Administrator password (16+ chars: letters, digits, . _ -). Applied only when the database is created.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RABBITMQ_DEFAULT_USER",
      "service": "RabbitMQ",
      "description": "Administrator created with a new database: management UI and AMQP login. Not 'guest'.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RABBITMQ_USE_LONGNAME",
      "service": "RabbitMQ",
      "description": "Short node names (required for rabbit@localhost).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ALLOW_TRANSIENT_QUEUES",
      "service": "RabbitMQ",
      "description": "true permits non-durable, non-exclusive queues (deprecated, denied by default since 4.3) for older clients.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RABBITMQ_ERLANG_COOKIE",
      "service": "RabbitMQ",
      "description": "Erlang cookie (shared secret for rabbitmqctl and other CLI tools), written to the cookie file.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RABBITMQ_MANAGEMENT_URL",
      "service": "RabbitMQ",
      "description": "Management HTTP API on the private network (HTTP Basic auth with the administrator).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_PROMETHEUS_URL",
      "service": "RabbitMQ",
      "description": "Prometheus scrape URL on the private network (no auth; never exposed publicly).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RABBITMQ_ENABLED_PLUGINS_FILE",
      "service": "RabbitMQ",
      "description": "Plugin list on the volume, so rabbitmq-plugins enable/disable survives redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/rabbitmq/enabled_plugins"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "RabbitMQ",
      "description": "Seconds between SIGTERM and SIGKILL on redeploy, so RabbitMQ can stop cleanly (Railway default 0).",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rabbitmq-4-message-broker-with-managemen"
      }
    },
    "cli": "railway deploy --template rabbitmq-4-message-broker-with-managemen",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a9a20909-76cc-42c6-a5d4-2de9f3661cc0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0e93dcf2-b633-5a56-b767-9d2ccb1c84f5": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/rabbitmq.svg",
                  "name": "RabbitMQ",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "repo": "baranberkay96/rabbitmq-railway",
                    "branch": "main",
                    "rootDirectory": "/services/rabbitmq"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Management UI port: public domain target; the healthcheck GETs / (login page, no auth needed).",
                      "defaultValue": "15672"
                    },
                    "AMQP_URL": {
                      "isOptional": true,
                      "description": "Alias of RABBITMQ_URL for libraries that read AMQP_URL.",
                      "defaultValue": "${{RABBITMQ_URL}}"
                    },
                    "RABBITMQ_URL": {
                      "isOptional": true,
                      "description": "AMQP URL on the private network (default vhost). Reference it as ${{RabbitMQ.RABBITMQ_URL}}.",
                      "defaultValue": "amqp://${{RABBITMQ_DEFAULT_USER}}:${{RABBITMQ_DEFAULT_PASS}}@${{RAILWAY_PRIVATE_DOMAIN}}:5672"
                    },
                    "RABBITMQ_HOST": {
                      "isOptional": true,
                      "description": "Private hostname for clients configured with separate host/port settings.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RABBITMQ_PORT": {
                      "isOptional": true,
                      "description": "AMQP port on the private network.",
                      "defaultValue": "5672"
                    },
                    "DISK_FREE_LIMIT": {
                      "isOptional": true,
                      "description": "Publishers block when free disk drops below this. auto = 20% of the volume (50 MB to 2 GB), or e.g. 1GB.",
                      "defaultValue": "auto"
                    },
                    "ERLANG_SCHEDULERS": {
                      "isOptional": true,
                      "description": "Erlang scheduler threads. auto = the container CPU quota, at most 8; or a number.",
                      "defaultValue": "auto"
                    },
                    "RABBITMQ_NODENAME": {
                      "isOptional": true,
                      "description": "Fixed node name; the database folder is named after it. Do not change after the first deploy.",
                      "defaultValue": "rabbit@localhost"
                    },
                    "MEMORY_HIGH_WATERMARK": {
                      "isOptional": true,
                      "description": "Publishers block above this: fraction (max 0.9) of the container memory limit, or a size like 2GiB.",
                      "defaultValue": "0.6"
                    },
                    "RABBITMQ_DEFAULT_PASS": {
                      "isOptional": true,
                      "description": "Administrator password (16+ chars: letters, digits, . _ -). Applied only when the database is created.",
                      "defaultValue": "{{RABBITMQ_DEFAULT_PASS}}"
                    },
                    "RABBITMQ_DEFAULT_USER": {
                      "isOptional": true,
                      "description": "Administrator created with a new database: management UI and AMQP login. Not 'guest'.",
                      "defaultValue": "admin"
                    },
                    "RABBITMQ_USE_LONGNAME": {
                      "isOptional": true,
                      "description": "Short node names (required for rabbit@localhost).",
                      "defaultValue": "false"
                    },
                    "ALLOW_TRANSIENT_QUEUES": {
                      "isOptional": true,
                      "description": "true permits non-durable, non-exclusive queues (deprecated, denied by default since 4.3) for older clients.",
                      "defaultValue": "false"
                    },
                    "RABBITMQ_ERLANG_COOKIE": {
                      "isOptional": true,
                      "description": "Erlang cookie (shared secret for rabbitmqctl and other CLI tools), written to the cookie file.",
                      "defaultValue": "{{RABBITMQ_ERLANG_COOKIE}}"
                    },
                    "RABBITMQ_MANAGEMENT_URL": {
                      "isOptional": true,
                      "description": "Management HTTP API on the private network (HTTP Basic auth with the administrator).",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:15672"
                    },
                    "RABBITMQ_PROMETHEUS_URL": {
                      "isOptional": true,
                      "description": "Prometheus scrape URL on the private network (no auth; never exposed publicly).",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:15692/metrics"
                    },
                    "RABBITMQ_ENABLED_PLUGINS_FILE": {
                      "isOptional": true,
                      "description": "Plugin list on the volume, so rabbitmq-plugins enable/disable survives redeploys.",
                      "defaultValue": "/var/lib/rabbitmq/enabled_plugins"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds between SIGTERM and SIGKILL on redeploy, so RabbitMQ can stop cleanly (Railway default 0).",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:15672": {
                        "port": 15672
                      }
                    }
                  },
                  "volumeMounts": {
                    "debfd067-9015-577a-b677-57cb8762b0ef": {
                      "mountPath": "/var/lib/rabbitmq"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "RabbitMQ",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-19T22:14:48.327Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-19T22:12:09.962Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_918d11bda9524ec1bdd3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
