{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5a37bb0e-83bf-4ff7-b327-42c8ae3be350",
    "slug": "revealui",
    "name": "RevealUI",
    "description": "Self-host RevealUI Free (OSS): pgvector, migrate, api, admin. Unlicensed.",
    "url": "https://railway.com/deploy/revealui",
    "upstream": {
      "repo_url": "https://github.com/RevealUIStudio/revealui"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "pgvector/pgvector:pg16"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "admin",
      "source": {
        "repo": "https://github.com/RevealUIStudio/revealui"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "api",
      "source": {
        "repo": "https://github.com/RevealUIStudio/revealui"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "migrate",
      "source": {
        "image": "ghcr.io/revealuistudio/revealui-migrate:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database name. Default revealui.",
      "secret": false,
      "strategy": "default",
      "default": "revealui"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Database user. Default revealui.",
      "secret": false,
      "strategy": "default",
      "default": "revealui"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Database password. Generate a strong random value. Do not reuse.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "API_URL",
      "service": "admin",
      "description": "Public https URL of the api. Railway reference to api's public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_ENV",
      "service": "admin",
      "description": "Set to production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "POSTGRES_URL",
      "service": "admin",
      "description": "Private Railway Postgres URL (sslmode=disable). Railway reference to api.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REVEALUI_KEK",
      "service": "admin",
      "description": "Same value as api. Railway reference to api.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REVEALUI_SECRET",
      "service": "admin",
      "description": "Same value as api. Railway reference to api.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_API_URL",
      "service": "admin",
      "description": "Public https URL of the api. Railway reference to api's public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REVEALUI_ADMIN_EMAIL",
      "service": "admin",
      "description": "Email for the first admin user (seeded on first boot).",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "admin",
      "description": "Path to the admin Dockerfile from the repo root. Required so Deploy Now uses Docker, not Railpack.",
      "secret": false,
      "strategy": "default",
      "default": "apps/admin/Dockerfile"
    },
    {
      "key": "REVEALUI_ADMIN_PASSWORD",
      "service": "admin",
      "description": "Password for the first admin user. Change it after first login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REVEALUI_AUDIT_SIGNING_KEY",
      "service": "admin",
      "description": "Same value as api. Railway reference to api.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REVEALUI_PUBLIC_SERVER_URL",
      "service": "admin",
      "description": "Public https URL of admin. Railway reference to admin's public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REVEALUI_ALLOW_UNLICENSED_SELF_HOST",
      "service": "admin",
      "description": "Set true for the Free (OSS) try path. Must be true on both api and admin.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NODE_ENV",
      "service": "api",
      "description": "Set to production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "CORS_ORIGIN",
      "service": "api",
      "description": "Admin public URL. Usually the Railway reference to admin's public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_URL",
      "service": "api",
      "description": "Private Railway Postgres URL (sslmode=disable).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REVEALUI_KEK",
      "service": "api",
      "description": "64 hex chars. Generate with: openssl rand -hex 32",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "REVEALUI_SECRET",
      "service": "api",
      "description": "64 hex chars. Generate with: openssl rand -hex 32",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PUBLIC_SERVER_URL",
      "service": "api",
      "description": "Public https URL of the api.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "api",
      "description": "Path to the api Dockerfile from the repo root. Required so Deploy Now uses Docker, not Railpack.",
      "secret": false,
      "strategy": "default",
      "default": "apps/server/Dockerfile"
    },
    {
      "key": "REVEALUI_AUDIT_SIGNING_KEY",
      "service": "api",
      "description": "Ed25519 PKCS#8 PEM that signs audit rows. Generate with openssl genpkey.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REVEALUI_PUBLIC_SERVER_URL",
      "service": "api",
      "description": "Public https URL of the api.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REVEALUI_ALLOW_UNLICENSED_SELF_HOST",
      "service": "api",
      "description": "Set true for the Free (OSS) try path. Must be true on both api and admin.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "POSTGRES_URL",
      "service": "migrate",
      "description": "Private Railway Postgres URL (sslmode=disable).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "revealui"
      }
    },
    "cli": "railway deploy --template revealui",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5a37bb0e-83bf-4ff7-b327-42c8ae3be350",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0916ddec-6703-4d6b-b523-549126f586c9": {
                  "icon": "https://cdn.simpleicons.org/postgresql",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg16"
                  },
                  "variables": {
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name. Default revealui.",
                      "defaultValue": "revealui"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user. Default revealui.",
                      "defaultValue": "revealui"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password. Generate a strong random value. Do not reuse.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  }
                },
                "10a32e33-80b4-4610-82d4-0dd37b97ef8f": {
                  "icon": "https://revealui.com/favicon.svg",
                  "name": "admin",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/RevealUIStudio/revealui",
                    "rootDirectory": null
                  },
                  "variables": {
                    "API_URL": {
                      "isOptional": false,
                      "description": "Public https URL of the api. Railway reference to api's public domain.",
                      "defaultValue": "https://${{api.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Set to production.",
                      "defaultValue": "production"
                    },
                    "POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Private Railway Postgres URL (sslmode=disable). Railway reference to api.",
                      "defaultValue": "${{api.POSTGRES_URL}}"
                    },
                    "REVEALUI_KEK": {
                      "isOptional": false,
                      "description": "Same value as api. Railway reference to api.",
                      "defaultValue": "${{api.REVEALUI_KEK}}"
                    },
                    "REVEALUI_SECRET": {
                      "isOptional": false,
                      "description": "Same value as api. Railway reference to api.",
                      "defaultValue": "${{api.REVEALUI_SECRET}}"
                    },
                    "NEXT_PUBLIC_API_URL": {
                      "isOptional": false,
                      "description": "Public https URL of the api. Railway reference to api's public domain.",
                      "defaultValue": "https://${{api.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REVEALUI_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email for the first admin user (seeded on first boot).",
                      "defaultValue": "{{REVEALUI_ADMIN_EMAIL}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Path to the admin Dockerfile from the repo root. Required so Deploy Now uses Docker, not Railpack.",
                      "defaultValue": "apps/admin/Dockerfile"
                    },
                    "REVEALUI_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the first admin user. Change it after first login.",
                      "defaultValue": "{{REVEALUI_ADMIN_PASSWORD}}"
                    },
                    "REVEALUI_AUDIT_SIGNING_KEY": {
                      "isOptional": false,
                      "description": "Same value as api. Railway reference to api.",
                      "defaultValue": "${{api.REVEALUI_AUDIT_SIGNING_KEY}}"
                    },
                    "REVEALUI_PUBLIC_SERVER_URL": {
                      "isOptional": false,
                      "description": "Public https URL of admin. Railway reference to admin's public domain.",
                      "defaultValue": "https://${{admin.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REVEALUI_ALLOW_UNLICENSED_SELF_HOST": {
                      "isOptional": false,
                      "description": "Set true for the Free (OSS) try path. Must be true on both api and admin.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "13214620-5828-4d17-a630-dda0a1042310": {
                  "icon": "https://revealui.com/favicon.svg",
                  "name": "api",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/RevealUIStudio/revealui",
                    "rootDirectory": null
                  },
                  "variables": {
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Set to production.",
                      "defaultValue": "production"
                    },
                    "CORS_ORIGIN": {
                      "isOptional": false,
                      "description": "Admin public URL. Usually the Railway reference to admin's public domain.",
                      "defaultValue": "https://${{admin.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Private Railway Postgres URL (sslmode=disable).",
                      "defaultValue": "postgresql://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.POSTGRES_DB}}?sslmode=disable"
                    },
                    "REVEALUI_KEK": {
                      "isOptional": false,
                      "description": "64 hex chars. Generate with: openssl rand -hex 32",
                      "defaultValue": "{{REVEALUI_KEK}}"
                    },
                    "REVEALUI_SECRET": {
                      "isOptional": false,
                      "description": "64 hex chars. Generate with: openssl rand -hex 32",
                      "defaultValue": "{{REVEALUI_SECRET}}"
                    },
                    "NEXT_PUBLIC_SERVER_URL": {
                      "isOptional": false,
                      "description": "Public https URL of the api.",
                      "defaultValue": "https://${{api.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Path to the api Dockerfile from the repo root. Required so Deploy Now uses Docker, not Railpack.",
                      "defaultValue": "apps/server/Dockerfile"
                    },
                    "REVEALUI_AUDIT_SIGNING_KEY": {
                      "isOptional": false,
                      "description": "Ed25519 PKCS#8 PEM that signs audit rows. Generate with openssl genpkey.",
                      "defaultValue": "{{REVEALUI_AUDIT_SIGNING_KEY}}"
                    },
                    "REVEALUI_PUBLIC_SERVER_URL": {
                      "isOptional": false,
                      "description": "Public https URL of the api.",
                      "defaultValue": "https://${{api.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REVEALUI_ALLOW_UNLICENSED_SELF_HOST": {
                      "isOptional": false,
                      "description": "Set true for the Free (OSS) try path. Must be true on both api and admin.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "68750daa-ba77-4f81-81f0-70848e7d1493": {
                  "icon": "https://cdn.simpleicons.org/drizzle",
                  "name": "migrate",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "NEVER",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/revealuistudio/revealui-migrate:latest"
                  },
                  "variables": {
                    "POSTGRES_URL": {
                      "isOptional": false,
                      "description": "Private Railway Postgres URL (sslmode=disable).",
                      "defaultValue": "postgresql://${{postgres.POSTGRES_USER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.POSTGRES_DB}}?sslmode=disable"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "admin",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0"
}
