{
  "manifest_version": "1.0.0",
  "template": {
    "id": "581251b2-36b0-4a92-a660-4407483e00a7",
    "slug": "beevibe",
    "name": "beevibe",
    "description": "Self-hosted agent runtime — pinned to release branch (latest stable tag)",
    "url": "https://railway.com/deploy/beevibe",
    "upstream": {
      "repo_url": "https://github.com/beevibe-ai/beevibe"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "web",
      "source": {
        "repo": "https://github.com/beevibe-ai/beevibe"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "api",
      "source": {
        "repo": "https://github.com/beevibe-ai/beevibe"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "scheduler",
      "source": {
        "repo": "https://github.com/beevibe-ai/beevibe"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory inside the container. Leave default.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname of this Postgres service — auto-resolved by Railway. Leave default.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Postgres port. Leave default (5432).",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": " Postgres role — auto-set. Leave default.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Postgres database name — auto-set. Leave default.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Postgres password — auto-generated by Railway. Don't change.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Postgres database name. Leave default (railway).",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Connection string for Postgres — referenced by api and scheduler. Auto-resolved.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Postgres role. Leave default (postgres).",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Days before Postgres SSL cert auto-rotates. Leave default (820).",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Postgres password — auto-generated by Railway. Don't change.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public-internet connection string for direct DB tooling (e.g. local psql). Optional.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period for Postgres shutdown during redeploy. Leave default (30).",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "NEXT_PUBLIC_BV_API_URL",
      "service": "web",
      "description": "URL of your api service — baked into the web bundle at build time. Auto-points at this project's api.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "api",
      "description": "Postgres connection string — auto-points at this project's Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "api",
      "description": "Your OpenAI API key — required for memory embeddings. Get one at platform.openai.com.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ANTHROPIC_API_KEY",
      "service": "api",
      "description": "Your Anthropic API key — required. Get one at console.anthropic.com.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BEEVIBE_CORS_ORIGINS",
      "service": "api",
      "description": "Comma-separated origins allowed to call the api. Auto-points at this project's web service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "scheduler",
      "description": "Postgres connection string — auto-points at this project's Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "scheduler",
      "description": "Your OpenAI API key — required for memory embeddings. Get one at platform.openai.com.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ANTHROPIC_API_KEY",
      "service": "scheduler",
      "description": "Your Anthropic API key — required. Get one at console.anthropic.com.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BEEVIBE_MCP_SERVER_URL",
      "service": "scheduler",
      "description": "URL of your api's /mcp endpoint — auto-points at this project's api.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "beevibe"
      }
    },
    "cli": "railway deploy --template beevibe",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "581251b2-36b0-4a92-a660-4407483e00a7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "caa5c65e-aeb2-4ca2-a2ae-59f6ca800909": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory inside the container. Leave default.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname of this Postgres service — auto-resolved by Railway. Leave default.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres port. Leave default (5432).",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": " Postgres role — auto-set. Leave default.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Postgres database name — auto-set. Leave default.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password — auto-generated by Railway. Don't change.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Postgres database name. Leave default (railway).",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connection string for Postgres — referenced by api and scheduler. Auto-resolved.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres role. Leave default (postgres).",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Days before Postgres SSL cert auto-rotates. Leave default (820).",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password — auto-generated by Railway. Don't change.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public-internet connection string for direct DB tooling (e.g. local psql). Optional.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period for Postgres shutdown during redeploy. Leave default (30).",
                      "defaultValue": "30"
                    }
                  },
                  "volumeMounts": {
                    "caa5c65e-aeb2-4ca2-a2ae-59f6ca800909": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "ddded35c-d994-420b-aea0-43637cca4599": {
                  "icon": null,
                  "name": "web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "beevibe-ai/beevibe",
                    "branch": "release",
                    "rootDirectory": null
                  },
                  "variables": {
                    "NEXT_PUBLIC_BV_API_URL": {
                      "isOptional": false,
                      "description": "URL of your api service — baked into the web bundle at build time. Auto-points at this project's api.",
                      "defaultValue": "https://${{api.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "e50fec62-72e3-4b12-aae8-866930491418": {
                  "icon": null,
                  "name": "api",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "beevibe-ai/beevibe",
                    "branch": "release",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string — auto-points at this project's Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Your OpenAI API key — required for memory embeddings. Get one at platform.openai.com.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": false,
                      "description": "Your Anthropic API key — required. Get one at console.anthropic.com.",
                      "defaultValue": "{{ANTHROPIC_API_KEY}}"
                    },
                    "BEEVIBE_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Comma-separated origins allowed to call the api. Auto-points at this project's web service.",
                      "defaultValue": "https://${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "fd199a1c-e1eb-48d9-a2fb-2ac9a533b7e7": {
                  "icon": null,
                  "name": "scheduler",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "beevibe-ai/beevibe",
                    "branch": "release",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string — auto-points at this project's Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Your OpenAI API key — required for memory embeddings. Get one at platform.openai.com.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": false,
                      "description": "Your Anthropic API key — required. Get one at console.anthropic.com.",
                      "defaultValue": "{{ANTHROPIC_API_KEY}}"
                    },
                    "BEEVIBE_MCP_SERVER_URL": {
                      "isOptional": false,
                      "description": "URL of your api's /mcp endpoint — auto-points at this project's api.",
                      "defaultValue": "https://${{api.RAILWAY_PUBLIC_DOMAIN}}/mcp"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T11:52:32.916Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_e7c1a0e0bba043c4af91",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,FAILED,BUILDING,SUCCESS"
      }
    ]
  }
}
