{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2dcfd89a-41f4-483c-9720-8ce8c6851d20",
    "slug": "beam",
    "name": "Beam",
    "description": "A simple message board for your organization or project",
    "url": "https://railway.com/deploy/beam",
    "upstream": {
      "repo_url": "https://github.com/planetscale/beam"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "beam",
      "source": {
        "repo": "https://github.com/planetscale/beam"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "tcp_ports": [
        3306
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "GITHUB_ID",
      "service": "beam",
      "description": "Client ID for the GitHub OAuth app.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "beam",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "beam",
      "description": "Provide a value for NEXTAUTH_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_APP_URL",
      "service": "beam",
      "description": "Provide a value for NEXT_APP_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_PROVIDER",
      "service": "beam",
      "description": "Provide a value for AUTH_PROVIDER.",
      "secret": false,
      "strategy": "default",
      "default": "github"
    },
    {
      "key": "GITHUB_SECRET",
      "service": "beam",
      "description": "Client secret for the GitHub OAuth app.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "beam",
      "description": "Used to encrypt the JWTs.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITHUB_ALLOWED_ORG",
      "service": "beam",
      "description": " The GitHub organization the Beam members must belong to.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "MySQL port.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "MySQL user, used for the Data panel.",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Default database, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Root password, used for Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database to be created on image startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL DB, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password for MySQL DB.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "beam"
      }
    },
    "cli": "railway deploy --template beam",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2dcfd89a-41f4-483c-9720-8ce8c6851d20",
            "serializedConfig": {
              "services": {
                "507005de-7c52-4c94-970f-ebb91e863394": {
                  "name": "beam",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/planetscale/beam"
                  },
                  "variables": {
                    "GITHUB_ID": {
                      "isOptional": false,
                      "description": "Client ID for the GitHub OAuth app.",
                      "defaultValue": "{{GITHUB_ID}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "${{ MYSQL_URL }}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "defaultValue": "${{ RAILWAY_STATIC_URL }}"
                    },
                    "NEXT_APP_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{ RAILWAY_STATIC_URL }}"
                    },
                    "AUTH_PROVIDER": {
                      "isOptional": false,
                      "defaultValue": "github"
                    },
                    "GITHUB_SECRET": {
                      "isOptional": false,
                      "description": "Client secret for the GitHub OAuth app.",
                      "defaultValue": "{{GITHUB_SECRET}}"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "Used to encrypt the JWTs.",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "GITHUB_ALLOWED_ORG": {
                      "isOptional": false,
                      "description": " The GitHub organization the Beam members must belong to.",
                      "defaultValue": "{{GITHUB_ALLOWED_ORG}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "e84f8482-59a9-408d-9f57-014c64cb9108": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "mysql:9"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "MySQL port.",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "MySQL user, used for the Data panel.",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "URL to connect to MySQL.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Default database, used for Data panel.",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Root password, used for Data panel.",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database to be created on image startup.",
                      "defaultValue": "railway"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "description": "URL to connect to MySQL DB, used for Data panel.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password for MySQL DB.",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "3306": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "e84f8482-59a9-408d-9f57-014c64cb9108": {
                      "mountPath": "/var/lib/mysql"
                    }
                  },
                  "haTemplateCode": "mysql-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "MySQL Replicas",
                      "options": [
                        2,
                        4,
                        6,
                        8
                      ],
                      "nodeLabel": "MySQL",
                      "description": "Requires odd count for quorum",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your MySQL instance to an HA cluster with Group Replication failover and HAProxy routing to the primary.",
                    "supportedImageMajorVersions": [
                      8,
                      9
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
