{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e934f977-26fb-45ef-aa03-265f4358afce",
    "slug": "lobehub-chat",
    "name": "LobeHub (Lobe Chat) | Team AI Chat with Postgres & File Storage",
    "description": "LobeHub server edition: team AI chat, files, knowledge base. Zero config.",
    "url": "https://railway.com/deploy/lobehub-chat",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/lobe-chat-railway"
    }
  },
  "services": [
    {
      "name": "lobehub",
      "source": {
        "repo": "https://github.com/nomideusz/lobe-chat-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "paradedb/paradedb:0.25.6-pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "lobehub",
      "description": "Port LobeHub listens on. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "3210"
    },
    {
      "key": "APP_URL",
      "service": "lobehub",
      "description": "Public URL of this deployment. Used for auth callbacks, bucket CORS and links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_BUCKET",
      "service": "lobehub",
      "description": "Railway bucket name (auto-wired).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "lobehub",
      "description": "Railway bucket region (auto-wired).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SET_ACL",
      "service": "lobehub",
      "description": "Railway buckets are private and do not support per-object ACLs. Keep 0.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "AUTH_SECRET",
      "service": "lobehub",
      "description": "Session encryption key for Better Auth. Auto-generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "lobehub",
      "description": "Railway bucket endpoint (auto-wired).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "lobehub",
      "description": "Postgres connection over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "lobehub",
      "description": "Railway bucket access key (auto-wired).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KEY_VAULTS_SECRET",
      "service": "lobehub",
      "description": "Encrypts API keys users store in LobeHub. Auto-generated; changing it invalidates stored keys.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "lobehub",
      "description": "Railway bucket secret key (auto-wired).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Data directory inside the volume (a subfolder, because Railway volumes mount with a lost+found entry). Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Auto-generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "lobehub-chat"
      }
    },
    "cli": "railway deploy --template lobehub-chat",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e934f977-26fb-45ef-aa03-265f4358afce",
            "serializedConfig": {
              "buckets": {
                "adb3cdda-13bf-411e-8006-819973a6e955": {
                  "name": "storage"
                }
              },
              "services": {
                "0c233b67-db1f-45f2-bc65-890b09829068": {
                  "icon": "https://web-assets.lobehub.com/landing-rr/prod/assets/logo-DauBOjoN.png",
                  "name": "lobehub",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/auth/ok",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/lobe-chat-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port LobeHub listens on. Do not change.",
                      "defaultValue": "3210"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public URL of this deployment. Used for auth callbacks, bucket CORS and links.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "JWKS_KEY": {
                      "isOptional": true,
                      "description": "Optional. RS256 JWKS JSON for OIDC token signing. Leave empty: one is generated on first boot and kept on the volume.",
                      "defaultValue": ""
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Railway bucket name (auto-wired).",
                      "defaultValue": "${{storage.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Railway bucket region (auto-wired).",
                      "defaultValue": "${{storage.REGION}}"
                    },
                    "S3_SET_ACL": {
                      "isOptional": false,
                      "description": "Railway buckets are private and do not support per-object ACLs. Keep 0.",
                      "defaultValue": "0"
                    },
                    "AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Session encryption key for Better Auth. Auto-generated.",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Railway bucket endpoint (auto-wired).",
                      "defaultValue": "${{storage.ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection over the private network.",
                      "defaultValue": "postgres://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Server-side OpenAI key shared by all users. Users can also add their own keys in Settings; any provider works (see LobeHub docs for the ANTHROPIC_API_KEY, GOOGLE_API_KEY, OLLAMA_PROXY_URL... names).",
                      "defaultValue": ""
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Railway bucket access key (auto-wired).",
                      "defaultValue": "${{storage.ACCESS_KEY_ID}}"
                    },
                    "KEY_VAULTS_SECRET": {
                      "isOptional": false,
                      "description": "Encrypts API keys users store in LobeHub. Auto-generated; changing it invalidates stored keys.",
                      "defaultValue": "{{KEY_VAULTS_SECRET}}"
                    },
                    "AUTH_ALLOWED_EMAILS": {
                      "isOptional": true,
                      "description": "Optional. Comma-separated emails or domains allowed to sign up (e.g. you@example.com,yourcompany.com). Empty = anyone with the URL can register - set this before sharing.",
                      "defaultValue": ""
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Railway bucket secret key (auto-wired).",
                      "defaultValue": "${{storage.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3210": {
                        "port": 3210
                      }
                    }
                  },
                  "volumeMounts": {
                    "0c233b67-db1f-45f2-bc65-890b09829068": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d91b4349-2560-405b-8d7f-57b6db766621": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "paradedb/paradedb:0.25.6-pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the volume (a subfolder, because Railway volumes mount with a lost+found entry). Do not change.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "d91b4349-2560-405b-8d7f-57b6db766621": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "lobehub",
      "method": "GET",
      "path": "/api/auth/ok",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-05T04:10:58.467Z",
  "success_rate_30d": 0.0833,
  "validation": {
    "last_run_id": "run_03ec18fe5d77492ab05c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 212,
    "typical_build_seconds": 20,
    "typical_start_seconds": 30,
    "slowest_service": "lobehub"
  }
}
