{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bc802cc9-f664-4fea-865e-92622d09bef7",
    "slug": "lobehub",
    "name": "lobehub",
    "description": "Deploy and Host Lobehub. Lobechat lobe hub lobe chat",
    "url": "https://railway.com/deploy/lobehub",
    "upstream": {
      "repo_url": "https://github.com/XavTo/lobehub-railway"
    }
  },
  "services": [
    {
      "name": "lobehub-railway",
      "source": {
        "repo": "https://github.com/XavTo/lobehub-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "paradedb",
      "source": {
        "image": "paradedb/paradedb:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "lobehub-railway",
      "description": "Public web service port",
      "secret": false,
      "strategy": "default",
      "default": "3210"
    },
    {
      "key": "APP_URL",
      "service": "lobehub-railway",
      "description": "Public URL generated by Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REDIS_TLS",
      "service": "lobehub-railway",
      "description": "Disables TLS for the private Redis connection",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_URL",
      "service": "lobehub-railway",
      "description": "Private connection URL from the Redis service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "lobehub-railway",
      "description": "Name of the Railway S3 bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "lobehub-railway",
      "description": "Region of the Railway S3 bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SET_ACL",
      "service": "lobehub-railway",
      "description": "Prevents unsupported S3 ACL operations",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "AUTH_SECRET",
      "service": "lobehub-railway",
      "description": "Secret used to encrypt authentication sessions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "lobehub-railway",
      "description": "S3-compatible API endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "lobehub-railway",
      "description": "Private PostgreSQL connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PREFIX",
      "service": "lobehub-railway",
      "description": "Prefix used to isolate LobeHub Redis keys",
      "secret": false,
      "strategy": "default",
      "default": "lobehub"
    },
    {
      "key": "JWKS_DATA_DIR",
      "service": "lobehub-railway",
      "description": "Persistent directory containing the generated JWKS",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "DATABASE_DRIVER",
      "service": "lobehub-railway",
      "description": "Enables PostgreSQL support and database migrations",
      "secret": false,
      "strategy": "default",
      "default": "node"
    },
    {
      "key": "INTERNAL_APP_URL",
      "service": "lobehub-railway",
      "description": "Internal URL used for server-to-server calls",
      "secret": false,
      "strategy": "default",
      "default": "http://localhost:3210"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "lobehub-railway",
      "description": "Access key ID for the S3 bucket",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KEY_VAULTS_SECRET",
      "service": "lobehub-railway",
      "description": "Secret used to encrypt stored API credentials",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_ENABLE_PATH_STYLE",
      "service": "lobehub-railway",
      "description": "Uses virtual-hosted-style S3 URLs",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "lobehub-railway",
      "description": "Secret access key for the S3 bucket",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private Railway hostname of Redis",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Internal Redis service port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default Redis ACL username",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private authenticated Redis URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Compatibility alias for the Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Random password generated during deployment",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public Redis URL through the TCP proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "paradedb",
      "description": "Persistent PostgreSQL data directory",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "paradedb",
      "description": "Private Railway hostname of ParadeDB",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "paradedb",
      "description": "Internal PostgreSQL service port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "paradedb",
      "description": "PostgreSQL username used by clients",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "paradedb",
      "description": "Default PostgreSQL database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "paradedb",
      "description": "PostgreSQL password used by clients",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "paradedb",
      "description": "Database created during initial startup",
      "secret": false,
      "strategy": "default",
      "default": "paradedb"
    },
    {
      "key": "DATABASE_URL",
      "service": "paradedb",
      "description": "Private PostgreSQL connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "paradedb",
      "description": "PostgreSQL administrator username",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "paradedb",
      "description": "Runs the ParadeDB container as root",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "paradedb",
      "description": "Random database password generated at deployment",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "paradedb",
      "description": "Public PostgreSQL URL through the TCP proxy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "lobehub"
      }
    },
    "cli": "railway deploy --template lobehub",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bc802cc9-f664-4fea-865e-92622d09bef7",
            "serializedConfig": {
              "buckets": {
                "f84c4511-03d1-416d-91c2-87fec7bd7776": {
                  "name": "S3 Bucket"
                }
              },
              "services": {
                "4f6d7318-77a9-4fea-a87e-eca5f287b2e8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/lobe-chat.svg",
                  "name": "lobehub-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/XavTo/lobehub-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public web service port",
                      "defaultValue": "3210"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public URL generated by Railway",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REDIS_TLS": {
                      "isOptional": false,
                      "description": "Disables TLS for the private Redis connection",
                      "defaultValue": "0"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection URL from the Redis service",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Name of the Railway S3 bucket",
                      "defaultValue": "${{S3 Bucket.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Region of the Railway S3 bucket",
                      "defaultValue": "${{S3 Bucket.REGION}}"
                    },
                    "S3_SET_ACL": {
                      "isOptional": false,
                      "description": "Prevents unsupported S3 ACL operations",
                      "defaultValue": "0"
                    },
                    "AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to encrypt authentication sessions",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible API endpoint",
                      "defaultValue": "${{S3 Bucket.ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL",
                      "defaultValue": "${{paradedb.DATABASE_URL}}"
                    },
                    "REDIS_PREFIX": {
                      "isOptional": false,
                      "description": "Prefix used to isolate LobeHub Redis keys",
                      "defaultValue": "lobehub"
                    },
                    "JWKS_DATA_DIR": {
                      "isOptional": false,
                      "description": "Persistent directory containing the generated JWKS",
                      "defaultValue": "/data"
                    },
                    "DATABASE_DRIVER": {
                      "description": "Enables PostgreSQL support and database migrations",
                      "defaultValue": "node"
                    },
                    "INTERNAL_APP_URL": {
                      "isOptional": false,
                      "description": "Internal URL used for server-to-server calls",
                      "defaultValue": "http://localhost:3210"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Access key ID for the S3 bucket",
                      "defaultValue": "${{S3 Bucket.ACCESS_KEY_ID}}"
                    },
                    "KEY_VAULTS_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to encrypt stored API credentials",
                      "defaultValue": "{{KEY_VAULTS_SECRET}}"
                    },
                    "S3_ENABLE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Uses virtual-hosted-style S3 URLs",
                      "defaultValue": "0"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Secret access key for the S3 bucket",
                      "defaultValue": "${{S3 Bucket.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "4f6d7318-77a9-4fea-a87e-eca5f287b2e8": {
                      "mountPath": "/data"
                    }
                  }
                },
                "7dc68583-0b28-450c-8c24-d2b4aac0d9c5": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private Railway hostname of Redis",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Internal Redis service port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default Redis ACL username",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private authenticated Redis URL",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Compatibility alias for the Redis password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Random password generated during deployment",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public Redis URL through the TCP proxy",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "7dc68583-0b28-450c-8c24-d2b4aac0d9c5": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "e37595e0-9c5b-4740-8b15-ccc2fc8c9c10": {
                  "icon": "https://devicons.railway.com/i/paradedb.svg",
                  "name": "paradedb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "paradedb/paradedb:latest"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Persistent PostgreSQL data directory",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private Railway hostname of ParadeDB",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Internal PostgreSQL service port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "PostgreSQL username used by clients",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default PostgreSQL database name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password used by clients",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created during initial startup",
                      "defaultValue": "paradedb"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL administrator username",
                      "defaultValue": "postgres"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs the ParadeDB container as root",
                      "defaultValue": "0"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Random database password generated at deployment",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public PostgreSQL URL through the TCP proxy",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    }
                  },
                  "volumeMounts": {
                    "e37595e0-9c5b-4740-8b15-ccc2fc8c9c10": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T20:45:55.494Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c241cd88f3524657bcda",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 90,
    "typical_build_seconds": 51,
    "typical_start_seconds": 21,
    "slowest_service": "lobehub-railway"
  }
}
