{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e25458fd-7218-486d-b723-c0cf0990a1ca",
    "slug": "lobehub-1",
    "name": "LobeHub",
    "description": "LobeHub, formerly LobeChat: AI chat and agents with Postgres and storage",
    "url": "https://railway.com/deploy/lobehub-1",
    "upstream": {
      "image": "rustfs/rustfs:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "paradedb/paradedb:latest-pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "rustfs",
      "source": {
        "image": "rustfs/rustfs:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "lobehub",
      "source": {
        "repo": "https://github.com/dektionstudio/railway-template-images"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory inside the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "lobehub"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string used by LobeHub",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database superuser",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Database password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "rustfs",
      "description": "S3 API port (browsers upload here through signed links)",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "RUSTFS_ADDRESS",
      "service": "rustfs",
      "description": "Listen on IPv6 too, for Railway's private network",
      "secret": false,
      "strategy": "default",
      "default": "[::]:9000"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "rustfs",
      "description": "Run as root so RustFS can write to the Railway volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RUSTFS_ACCESS_KEY",
      "service": "rustfs",
      "description": "S3 access key (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RUSTFS_SECRET_KEY",
      "service": "rustfs",
      "description": "S3 secret key (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RUSTFS_CONSOLE_ENABLE",
      "service": "rustfs",
      "description": "Admin console off",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PORT",
      "service": "lobehub",
      "description": "Port of the LobeHub web app",
      "secret": false,
      "strategy": "default",
      "default": "3210"
    },
    {
      "key": "APP_URL",
      "service": "lobehub",
      "description": "Public URL LobeHub uses for logins and links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_BUCKET",
      "service": "lobehub",
      "description": "Bucket for uploaded files (created on first start)",
      "secret": false,
      "strategy": "default",
      "default": "lobehub"
    },
    {
      "key": "S3_REGION",
      "service": "lobehub",
      "description": "Region name used for request signing",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "S3_SET_ACL",
      "service": "lobehub",
      "description": "The bucket is private; files are shown through short-lived signed links",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "AUTH_SECRET",
      "service": "lobehub",
      "description": "Signs login sessions (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LOBEHUB_URL",
      "service": "lobehub",
      "description": "Open this and sign up with the email address above",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "lobehub",
      "description": "Public RustFS address; browsers upload and load files here with signed links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "lobehub",
      "description": "ParadeDB Postgres over the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INTERNAL_APP_URL",
      "service": "lobehub",
      "description": "How LobeHub calls itself inside the container",
      "secret": false,
      "strategy": "default",
      "default": "http://localhost:3210"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "lobehub",
      "description": "RustFS access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KEY_VAULTS_SECRET",
      "service": "lobehub",
      "description": "Encrypts the API keys users save in LobeHub (generated). Keep it",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTH_ALLOWED_EMAILS",
      "service": "lobehub",
      "description": "Your email address. Only the addresses or domains listed here (comma-separated) can create an account",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "S3_ENABLE_PATH_STYLE",
      "service": "lobehub",
      "description": "RustFS uses path-style URLs",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "S3_INTERNAL_ENDPOINT",
      "service": "lobehub",
      "description": "LobeHub's own S3 calls stay on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "lobehub",
      "description": "RustFS secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LLM_VISION_IMAGE_USE_BASE64",
      "service": "lobehub",
      "description": "Send images to models as data, not as links",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "lobehub-1"
      }
    },
    "cli": "railway deploy --template lobehub-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e25458fd-7218-486d-b723-c0cf0990a1ca",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "548d9426-451e-42c0-91ab-0c287c0f8fba": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "paradedb/paradedb:latest-pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "lobehub"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string used by LobeHub",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database superuser",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password (generated)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "dc07bd13-843b-48b0-b9ca-2f8b1ccf2cbf": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "9596f571-28dc-4579-9f0e-392e506528a4": {
                  "icon": "https://cdn.jsdelivr.net/gh/devicons/devicon@v2.16.0/icons/rust/rust-original.svg",
                  "name": "rustfs",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'mkdir -p /data && exec rustfs /data'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "rustfs/rustfs:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "S3 API port (browsers upload here through signed links)",
                      "defaultValue": "9000"
                    },
                    "RUSTFS_ADDRESS": {
                      "isOptional": false,
                      "description": "Listen on IPv6 too, for Railway's private network",
                      "defaultValue": "[::]:9000"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so RustFS can write to the Railway volume",
                      "defaultValue": "0"
                    },
                    "RUSTFS_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3 access key (generated)",
                      "defaultValue": "{{RUSTFS_ACCESS_KEY}}"
                    },
                    "RUSTFS_SECRET_KEY": {
                      "isOptional": false,
                      "description": "S3 secret key (generated)",
                      "defaultValue": "{{RUSTFS_SECRET_KEY}}"
                    },
                    "RUSTFS_CONSOLE_ENABLE": {
                      "isOptional": false,
                      "description": "Admin console off",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:9000": {
                        "port": 9000
                      }
                    }
                  },
                  "volumeMounts": {
                    "fe26b4d1-295f-4601-9d81-ebb24912462f": {
                      "mountPath": "/data"
                    }
                  }
                },
                "dda618a8-00ec-4179-aee4-099eacaf208d": {
                  "icon": "https://raw.githubusercontent.com/lobehub/lobehub/769c006afcc6cbe0dbf03f5f6e82950f1469dd44/public/app-icons/icon-192x192.png",
                  "name": "lobehub",
                  "deploy": {
                    "healthcheckPath": "/signin",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "dektionstudio/railway-template-images",
                    "rootDirectory": "/lobehub"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of the LobeHub web app",
                      "defaultValue": "3210"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public URL LobeHub uses for logins and links",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket for uploaded files (created on first start)",
                      "defaultValue": "lobehub"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Region name used for request signing",
                      "defaultValue": "us-east-1"
                    },
                    "S3_SET_ACL": {
                      "isOptional": false,
                      "description": "The bucket is private; files are shown through short-lived signed links",
                      "defaultValue": "0"
                    },
                    "AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Signs login sessions (generated)",
                      "defaultValue": "{{AUTH_SECRET}}"
                    },
                    "LOBEHUB_URL": {
                      "isOptional": false,
                      "description": "Open this and sign up with the email address above",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Public RustFS address; browsers upload and load files here with signed links",
                      "defaultValue": "https://${{rustfs.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "ParadeDB Postgres over the private network",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "INTERNAL_APP_URL": {
                      "isOptional": false,
                      "description": "How LobeHub calls itself inside the container",
                      "defaultValue": "http://localhost:3210"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "RustFS access key",
                      "defaultValue": "${{rustfs.RUSTFS_ACCESS_KEY}}"
                    },
                    "KEY_VAULTS_SECRET": {
                      "isOptional": false,
                      "description": "Encrypts the API keys users save in LobeHub (generated). Keep it",
                      "defaultValue": "{{KEY_VAULTS_SECRET}}"
                    },
                    "AUTH_ALLOWED_EMAILS": {
                      "isOptional": false,
                      "description": "Your email address. Only the addresses or domains listed here (comma-separated) can create an account",
                      "defaultValue": "{{AUTH_ALLOWED_EMAILS}}"
                    },
                    "S3_ENABLE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "RustFS uses path-style URLs",
                      "defaultValue": "1"
                    },
                    "S3_INTERNAL_ENDPOINT": {
                      "isOptional": false,
                      "description": "LobeHub's own S3 calls stay on the private network",
                      "defaultValue": "http://${{rustfs.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "RustFS secret key",
                      "defaultValue": "${{rustfs.RUSTFS_SECRET_KEY}}"
                    },
                    "LLM_VISION_IMAGE_USE_BASE64": {
                      "isOptional": false,
                      "description": "Send images to models as data, not as links",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3210": {
                        "port": 3210
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "rustfs",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-26T10:14:47.613Z",
  "generator_version": "0.1.0"
}
