{
  "manifest_version": "1.0.0",
  "template": {
    "id": "49827a55-f4a7-4ef1-88d1-2eef76c9e75f",
    "slug": "mosquitto-broker",
    "name": "Mosquitto Broker",
    "description": "Lightweight MQTT message broker.",
    "url": "https://railway.com/deploy/mosquitto-broker",
    "upstream": {
      "repo_url": "https://github.com/Lima-e-Silva/mosquitto_railway_template"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Mosquitto Broker",
      "source": {
        "repo": "https://github.com/Lima-e-Silva/mosquitto_railway_template"
      },
      "needs_volume": false,
      "tcp_ports": [
        1883
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MOSQUITTO_WS_HOST",
      "service": "Mosquitto Broker",
      "description": "The host for websockets connections",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MOSQUITTO_WS_PORT",
      "service": "Mosquitto Broker",
      "description": "The external port for websocket connections",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "MOSQUITTO_PASSWORD",
      "service": "Mosquitto Broker",
      "description": "The password for connections",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MOSQUITTO_TCP_HOST",
      "service": "Mosquitto Broker",
      "description": "The host for TCP connections",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MOSQUITTO_TCP_PORT",
      "service": "Mosquitto Broker",
      "description": "The external port for the TCP Proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MOSQUITTO_USERNAME",
      "service": "Mosquitto Broker",
      "description": "The username for connections",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mosquitto-broker"
      }
    },
    "cli": "railway deploy --template mosquitto-broker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "49827a55-f4a7-4ef1-88d1-2eef76c9e75f",
            "serializedConfig": {
              "services": {
                "493ef1f0-3428-4435-9eaa-070d6c0de8e0": {
                  "icon": "https://raw.githubusercontent.com/docker-library/docs/757578e3a44e5460a8a11d32a81776f8b74231a9/eclipse-mosquitto/logo.png",
                  "name": "Mosquitto Broker",
                  "source": {
                    "repo": "Lima-e-Silva/mosquitto_railway_template",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "MOSQUITTO_WS_HOST": {
                      "description": "The host for websockets connections",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MOSQUITTO_WS_PORT": {
                      "isOptional": false,
                      "description": "The external port for websocket connections",
                      "defaultValue": "443"
                    },
                    "MOSQUITTO_PASSWORD": {
                      "isOptional": false,
                      "description": "The password for connections",
                      "defaultValue": "{{MOSQUITTO_PASSWORD}}"
                    },
                    "MOSQUITTO_TCP_HOST": {
                      "description": "The host for TCP connections",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "MOSQUITTO_TCP_PORT": {
                      "description": "The external port for the TCP Proxy",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MOSQUITTO_USERNAME": {
                      "isOptional": false,
                      "description": "The username for connections",
                      "defaultValue": "{{MOSQUITTO_USERNAME}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "1883": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:9001": {
                        "port": 9001
                      }
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
