{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a7ec320f-842f-45f0-bf35-4d3eb39904be",
    "slug": "onyx-v4-enterprise-ai-search",
    "name": "Onyx v4 Enterprise AI Search",
    "description": "Ask questions across Slack, Drive, Confluence and more with self-hosted AI.",
    "url": "https://railway.com/deploy/onyx-v4-enterprise-ai-search",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/onyx-railway"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "nginx",
      "source": {
        "repo": "https://github.com/baranberkay96/onyx-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "opensearch",
      "source": {
        "repo": "https://github.com/baranberkay96/onyx-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/opensearch/data",
      "http": false
    },
    {
      "name": "indexing-model-server",
      "source": {
        "image": "onyxdotapp/onyx-model-server:v4.9.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "api-server",
      "source": {
        "image": "onyxdotapp/onyx-backend:v4.9.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "inference-model-server",
      "source": {
        "image": "onyxdotapp/onyx-model-server:v4.9.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "SeaweedFS",
      "source": {
        "image": "chrislusf/seaweedfs:4.48"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "web-server",
      "source": {
        "image": "onyxdotapp/onyx-web-server:v4.9.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "background",
      "source": {
        "image": "onyxdotapp/onyx-backend:v4.9.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "nginx",
      "description": "nginx listen port (public domain target).",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "ONYX_API_HOST",
      "service": "nginx",
      "description": "API server host (port 8080).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ONYX_WEB_HOST",
      "service": "nginx",
      "description": "Web server host (port 3000).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NGINX_PROXY_READ_TIMEOUT",
      "service": "nginx",
      "description": "Upstream read timeout (s); raise for very long agent runs.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "NGINX_PROXY_SEND_TIMEOUT",
      "service": "nginx",
      "description": "Upstream send timeout (s).",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "NGINX_PROXY_CONNECT_TIMEOUT",
      "service": "nginx",
      "description": "Upstream connect timeout (s).",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "network.host",
      "service": "opensearch",
      "description": "Listen on IPv6 and IPv4 for private-network clients.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "discovery.type",
      "service": "opensearch",
      "description": "Single-node cluster (as upstream).",
      "secret": false,
      "strategy": "default",
      "default": "single-node"
    },
    {
      "key": "OPENSEARCH_JAVA_OPTS",
      "service": "opensearch",
      "description": "JVM heap (upstream value). Keep about half of the RAM OpenSearch may use.",
      "secret": false,
      "strategy": "default",
      "default": "-Xms2g -Xmx2g"
    },
    {
      "key": "bootstrap.memory_lock",
      "service": "opensearch",
      "description": "memlock ulimits cannot be raised on Railway.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "node.store.allow_mmap",
      "service": "opensearch",
      "description": "Do not depend on the host's vm.max_map_count, which containers cannot change.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "OPENSEARCH_INITIAL_ADMIN_PASSWORD",
      "service": "opensearch",
      "description": "Admin password for the security plugin (prefix guarantees upper/lower/digit/special).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "opensearch",
      "description": "Allow a clean shutdown on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI",
      "service": "opensearch",
      "description": "Do not start the Performance Analyzer side JVM (saves ~0.3 GB).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "indexing-model-server",
      "description": "Model server port (Railway healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "LOG_LEVEL",
      "service": "indexing-model-server",
      "description": "Log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "INDEXING_ONLY",
      "service": "indexing-model-server",
      "description": "Indexing mode: serves document embedding requests from the background workers.",
      "secret": false,
      "strategy": "default",
      "default": "True"
    },
    {
      "key": "PORT",
      "service": "api-server",
      "description": "API port (private; nginx routes /api here).",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LOG_LEVEL",
      "service": "api-server",
      "description": "Log level for API, Celery workers and bots.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "REDIS_HOST",
      "service": "api-server",
      "description": "Redis host (Celery broker, cache, login sessions).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "api-server",
      "description": "Redis port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEB_DOMAIN",
      "service": "api-server",
      "description": "Public URL (nginx); used for redirects, emails and SSO callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_DB",
      "service": "api-server",
      "description": "Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "api-server",
      "description": "Postgres host (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "api-server",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "api-server",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "api-server",
      "description": "Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_REGION_NAME",
      "service": "api-server",
      "description": "Region sent to the S3 client; us-east-1 avoids a LocationConstraint when Onyx creates the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "OPENSEARCH_HOST",
      "service": "api-server",
      "description": "OpenSearch host (document index, port 9200, HTTPS with the image's self-signed demo certificate).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ENDPOINT_URL",
      "service": "api-server",
      "description": "SeaweedFS S3 endpoint (private network). Onyx uses path-style addressing.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "USER_AUTH_SECRET",
      "service": "api-server",
      "description": "Signs password-reset, verification, OAuth-state and captcha tokens. Required by the API server.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MODEL_SERVER_HOST",
      "service": "api-server",
      "description": "Inference model server (query embeddings, reranking).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "api-server",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FILE_STORE_BACKEND",
      "service": "api-server",
      "description": "Uploaded files and connector blobs go to S3-compatible storage (SeaweedFS).",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "S3_AWS_ACCESS_KEY_ID",
      "service": "api-server",
      "description": "SeaweedFS S3 access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENCRYPTION_KEY_SECRET",
      "service": "api-server",
      "description": "Encrypts connector credentials and API keys stored in Postgres. Never change after first use.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_AWS_SECRET_ACCESS_KEY",
      "service": "api-server",
      "description": "SeaweedFS S3 secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENSEARCH_ADMIN_PASSWORD",
      "service": "api-server",
      "description": "OpenSearch admin password (reference).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_FILE_STORE_BUCKET_NAME",
      "service": "api-server",
      "description": "Bucket created by Onyx on first start.",
      "secret": false,
      "strategy": "default",
      "default": "onyx-file-store-bucket"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "api-server",
      "description": "Let streaming chat responses finish during redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "ENABLE_PAID_ENTERPRISE_EDITION_FEATURES",
      "service": "api-server",
      "description": "Enterprise features need an Onyx license.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PORT",
      "service": "inference-model-server",
      "description": "Model server port (Railway healthcheck).",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "LOG_LEVEL",
      "service": "inference-model-server",
      "description": "Log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "PORT",
      "service": "SeaweedFS",
      "description": "S3 gateway port; Railway healthcheck uses /healthz.",
      "secret": false,
      "strategy": "default",
      "default": "8333"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "SeaweedFS",
      "description": "Admin access key for the S3 gateway (SeaweedFS reads it from the environment).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "SeaweedFS",
      "description": "Admin secret key for the S3 gateway.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "SeaweedFS",
      "description": "Allow a clean shutdown on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "web-server",
      "description": "Next.js port (private; nginx routes / here).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "web-server",
      "description": "Bind address; :: accepts IPv4 and IPv6 from nginx.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "WEB_DOMAIN",
      "service": "web-server",
      "description": "Public URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "INTERNAL_URL",
      "service": "web-server",
      "description": "API URL used for server-side rendering.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LOG_LEVEL",
      "service": "background",
      "description": "Log level for API, Celery workers and bots.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "REDIS_HOST",
      "service": "background",
      "description": "Redis host (Celery broker, cache, login sessions).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "background",
      "description": "Redis port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEB_DOMAIN",
      "service": "background",
      "description": "Public URL (nginx); used for redirects, emails and SSO callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_DB",
      "service": "background",
      "description": "Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "background",
      "description": "Postgres host (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "background",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "background",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "background",
      "description": "Redis password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_SERVER_HOST",
      "service": "background",
      "description": "API server host for internal calls.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AWS_REGION_NAME",
      "service": "background",
      "description": "Region sent to the S3 client; us-east-1 avoids a LocationConstraint when Onyx creates the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "OPENSEARCH_HOST",
      "service": "background",
      "description": "OpenSearch host (document index, port 9200, HTTPS with the image's self-signed demo certificate).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_ENDPOINT_URL",
      "service": "background",
      "description": "SeaweedFS S3 endpoint (private network). Onyx uses path-style addressing.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "USER_AUTH_SECRET",
      "service": "background",
      "description": "Must match api-server.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MODEL_SERVER_HOST",
      "service": "background",
      "description": "Inference model server (query embeddings, reranking).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "background",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FILE_STORE_BACKEND",
      "service": "background",
      "description": "Uploaded files and connector blobs go to S3-compatible storage (SeaweedFS).",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "API_SERVER_PROTOCOL",
      "service": "background",
      "description": "Protocol for internal calls to the API (Discord bot).",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "S3_AWS_ACCESS_KEY_ID",
      "service": "background",
      "description": "SeaweedFS S3 access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENCRYPTION_KEY_SECRET",
      "service": "background",
      "description": "Must match api-server.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_AWS_SECRET_ACCESS_KEY",
      "service": "background",
      "description": "SeaweedFS S3 secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENSEARCH_ADMIN_PASSWORD",
      "service": "background",
      "description": "OpenSearch admin password (reference).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_FILE_STORE_BUCKET_NAME",
      "service": "background",
      "description": "Bucket created by Onyx on first start.",
      "secret": false,
      "strategy": "default",
      "default": "onyx-file-store-bucket"
    },
    {
      "key": "INDEXING_MODEL_SERVER_HOST",
      "service": "background",
      "description": "Indexing model server (document embeddings).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "background",
      "description": "Give Celery workers time to finish tasks during redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "ENABLE_PAID_ENTERPRISE_EDITION_FEATURES",
      "service": "background",
      "description": "Enterprise features need an Onyx license.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "onyx-v4-enterprise-ai-search"
      }
    },
    "cli": "railway deploy --template onyx-v4-enterprise-ai-search",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a7ec320f-842f-45f0-bf35-4d3eb39904be",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2d0e0909-d833-5468-8dd6-e075ab6a0c52": {
                  "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\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": true,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": true,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": true,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": true,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "0ba1166e-bcc5-53a1-a939-ea26eff617e9": {
                      "mountPath": "/data"
                    }
                  }
                },
                "3c129438-982b-55b5-8ca4-a242880c23e6": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": "/usr/bin/tini -g -- /usr/local/bin/wrapper.sh postgres -p 5432 -c listen_addresses=* -c max_connections=250",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "5b52fc91-e088-5504-a1cf-40519d05a39b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "47fe7541-dd04-58d2-b64d-2e8d4ebaab82": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/nginx.svg",
                  "name": "nginx",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/nginx-health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/onyx-railway",
                    "branch": "main",
                    "rootDirectory": "/services/nginx"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "nginx listen port (public domain target).",
                      "defaultValue": "80"
                    },
                    "ONYX_API_HOST": {
                      "isOptional": true,
                      "description": "API server host (port 8080).",
                      "defaultValue": "${{api-server.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ONYX_WEB_HOST": {
                      "isOptional": true,
                      "description": "Web server host (port 3000).",
                      "defaultValue": "${{web-server.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "NGINX_PROXY_READ_TIMEOUT": {
                      "isOptional": true,
                      "description": "Upstream read timeout (s); raise for very long agent runs.",
                      "defaultValue": "300"
                    },
                    "NGINX_PROXY_SEND_TIMEOUT": {
                      "isOptional": true,
                      "description": "Upstream send timeout (s).",
                      "defaultValue": "300"
                    },
                    "NGINX_PROXY_CONNECT_TIMEOUT": {
                      "isOptional": true,
                      "description": "Upstream connect timeout (s).",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                },
                "64145ad8-8c16-5bb9-9b88-5877b22b1825": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/opensearch.svg",
                  "name": "opensearch",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/onyx-railway",
                    "branch": "main",
                    "rootDirectory": "/services/opensearch"
                  },
                  "variables": {
                    "network.host": {
                      "isOptional": true,
                      "description": "Listen on IPv6 and IPv4 for private-network clients.",
                      "defaultValue": "::"
                    },
                    "discovery.type": {
                      "isOptional": true,
                      "description": "Single-node cluster (as upstream).",
                      "defaultValue": "single-node"
                    },
                    "OPENSEARCH_JAVA_OPTS": {
                      "isOptional": true,
                      "description": "JVM heap (upstream value). Keep about half of the RAM OpenSearch may use.",
                      "defaultValue": "-Xms2g -Xmx2g"
                    },
                    "bootstrap.memory_lock": {
                      "isOptional": true,
                      "description": "memlock ulimits cannot be raised on Railway.",
                      "defaultValue": "false"
                    },
                    "node.store.allow_mmap": {
                      "isOptional": true,
                      "description": "Do not depend on the host's vm.max_map_count, which containers cannot change.",
                      "defaultValue": "false"
                    },
                    "OPENSEARCH_INITIAL_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Admin password for the security plugin (prefix guarantees upper/lower/digit/special).",
                      "defaultValue": "{{OPENSEARCH_INITIAL_ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow a clean shutdown on redeploy.",
                      "defaultValue": "60"
                    },
                    "DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI": {
                      "isOptional": true,
                      "description": "Do not start the Performance Analyzer side JVM (saves ~0.3 GB).",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "2685fe5c-da0d-5c35-b211-4e80a8a248f3": {
                      "mountPath": "/usr/share/opensearch/data"
                    }
                  }
                },
                "735f8384-1b8b-55c4-8006-1ec3e4ae093c": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/onyx-light.svg",
                  "name": "indexing-model-server",
                  "deploy": {
                    "startCommand": "python -m uvicorn model_server.main:app --host 0.0.0.0 --port 9000",
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 900,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "onyxdotapp/onyx-model-server:v4.9.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Model server port (Railway healthcheck).",
                      "defaultValue": "9000"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Log level.",
                      "defaultValue": "info"
                    },
                    "INDEXING_ONLY": {
                      "isOptional": true,
                      "description": "Indexing mode: serves document embedding requests from the background workers.",
                      "defaultValue": "True"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "7a12043f-0449-5c92-b17c-1a404580d298": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/onyx-light.svg",
                  "name": "api-server",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"alembic upgrade head && exec uvicorn onyx.main:app --host 0.0.0.0 --port 8080\"",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 900,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "onyxdotapp/onyx-backend:v4.9.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "API port (private; nginx routes /api here).",
                      "defaultValue": "8080"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Log level for API, Celery workers and bots.",
                      "defaultValue": "info"
                    },
                    "REDIS_HOST": {
                      "isOptional": true,
                      "description": "Redis host (Celery broker, cache, login sessions).",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": true,
                      "description": "Redis port.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "WEB_DOMAIN": {
                      "isOptional": true,
                      "description": "Public URL (nginx); used for redirects, emails and SSO callbacks.",
                      "defaultValue": "https://${{nginx.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Postgres database.",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": true,
                      "description": "Postgres host (private network).",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Postgres user.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Redis password.",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "AWS_REGION_NAME": {
                      "isOptional": true,
                      "description": "Region sent to the S3 client; us-east-1 avoids a LocationConstraint when Onyx creates the bucket.",
                      "defaultValue": "us-east-1"
                    },
                    "OPENSEARCH_HOST": {
                      "isOptional": true,
                      "description": "OpenSearch host (document index, port 9200, HTTPS with the image's self-signed demo certificate).",
                      "defaultValue": "${{opensearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "S3_ENDPOINT_URL": {
                      "isOptional": true,
                      "description": "SeaweedFS S3 endpoint (private network). Onyx uses path-style addressing.",
                      "defaultValue": "http://${{SeaweedFS.RAILWAY_PRIVATE_DOMAIN}}:8333"
                    },
                    "USER_AUTH_SECRET": {
                      "isOptional": true,
                      "description": "Signs password-reset, verification, OAuth-state and captcha tokens. Required by the API server.",
                      "defaultValue": "{{USER_AUTH_SECRET}}"
                    },
                    "MODEL_SERVER_HOST": {
                      "isOptional": true,
                      "description": "Inference model server (query embeddings, reranking).",
                      "defaultValue": "${{inference-model-server.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres password.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "FILE_STORE_BACKEND": {
                      "isOptional": true,
                      "description": "Uploaded files and connector blobs go to S3-compatible storage (SeaweedFS).",
                      "defaultValue": "s3"
                    },
                    "VALID_EMAIL_DOMAINS": {
                      "isOptional": true,
                      "description": "Optional. Comma-separated email domains allowed to sign up (e.g. example.com). Empty = anyone with the URL can register.",
                      "defaultValue": ""
                    },
                    "S3_AWS_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "SeaweedFS S3 access key.",
                      "defaultValue": "${{SeaweedFS.AWS_ACCESS_KEY_ID}}"
                    },
                    "ENCRYPTION_KEY_SECRET": {
                      "isOptional": true,
                      "description": "Encrypts connector credentials and API keys stored in Postgres. Never change after first use.",
                      "defaultValue": "{{ENCRYPTION_KEY_SECRET}}"
                    },
                    "S3_AWS_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "SeaweedFS S3 secret key.",
                      "defaultValue": "${{SeaweedFS.AWS_SECRET_ACCESS_KEY}}"
                    },
                    "OPENSEARCH_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "OpenSearch admin password (reference).",
                      "defaultValue": "${{opensearch.OPENSEARCH_INITIAL_ADMIN_PASSWORD}}"
                    },
                    "S3_FILE_STORE_BUCKET_NAME": {
                      "isOptional": true,
                      "description": "Bucket created by Onyx on first start.",
                      "defaultValue": "onyx-file-store-bucket"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Let streaming chat responses finish during redeploys.",
                      "defaultValue": "60"
                    },
                    "ENABLE_PAID_ENTERPRISE_EDITION_FEATURES": {
                      "isOptional": true,
                      "description": "Enterprise features need an Onyx license.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "a0841b6b-108d-5d49-ab38-551ee5e81ef6": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/onyx-light.svg",
                  "name": "inference-model-server",
                  "deploy": {
                    "startCommand": "python -m uvicorn model_server.main:app --host 0.0.0.0 --port 9000",
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 900,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "onyxdotapp/onyx-model-server:v4.9.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Model server port (Railway healthcheck).",
                      "defaultValue": "9000"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Log level.",
                      "defaultValue": "info"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "a78e8de4-d0ef-53e6-9d77-1fabd11ce705": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/seaweedfs.svg",
                  "name": "SeaweedFS",
                  "deploy": {
                    "startCommand": "/entrypoint.sh server -ip=127.0.0.1 -ip.bind=:: -s3 -s3.port=8333",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chrislusf/seaweedfs:4.48"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "S3 gateway port; Railway healthcheck uses /healthz.",
                      "defaultValue": "8333"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Admin access key for the S3 gateway (SeaweedFS reads it from the environment).",
                      "defaultValue": "{{AWS_ACCESS_KEY_ID}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Admin secret key for the S3 gateway.",
                      "defaultValue": "{{AWS_SECRET_ACCESS_KEY}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow a clean shutdown on redeploy.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "48719f33-5ae2-5594-8728-0cb9c2d3eed8": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d3d73efc-4ba4-567a-85ab-044895b22c66": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/onyx-light.svg",
                  "name": "web-server",
                  "deploy": {
                    "healthcheckPath": "/logo.png",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "onyxdotapp/onyx-web-server:v4.9.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Next.js port (private; nginx routes / here).",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "isOptional": true,
                      "description": "Bind address; :: accepts IPv4 and IPv6 from nginx.",
                      "defaultValue": "::"
                    },
                    "WEB_DOMAIN": {
                      "isOptional": true,
                      "description": "Public URL.",
                      "defaultValue": "https://${{nginx.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "INTERNAL_URL": {
                      "isOptional": true,
                      "description": "API URL used for server-side rendering.",
                      "defaultValue": "http://${{api-server.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "f9b65405-362d-5f0f-9223-88bc81edb428": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/onyx-light.svg",
                  "name": "background",
                  "deploy": {
                    "startCommand": "/app/scripts/supervisord_entrypoint.sh",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "onyxdotapp/onyx-backend:v4.9.0"
                  },
                  "variables": {
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Log level for API, Celery workers and bots.",
                      "defaultValue": "info"
                    },
                    "REDIS_HOST": {
                      "isOptional": true,
                      "description": "Redis host (Celery broker, cache, login sessions).",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": true,
                      "description": "Redis port.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "WEB_DOMAIN": {
                      "isOptional": true,
                      "description": "Public URL (nginx); used for redirects, emails and SSO callbacks.",
                      "defaultValue": "https://${{nginx.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Postgres database.",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": true,
                      "description": "Postgres host (private network).",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Postgres user.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Redis password.",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "API_SERVER_HOST": {
                      "isOptional": true,
                      "description": "API server host for internal calls.",
                      "defaultValue": "${{api-server.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "AWS_REGION_NAME": {
                      "isOptional": true,
                      "description": "Region sent to the S3 client; us-east-1 avoids a LocationConstraint when Onyx creates the bucket.",
                      "defaultValue": "us-east-1"
                    },
                    "OPENSEARCH_HOST": {
                      "isOptional": true,
                      "description": "OpenSearch host (document index, port 9200, HTTPS with the image's self-signed demo certificate).",
                      "defaultValue": "${{opensearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "S3_ENDPOINT_URL": {
                      "isOptional": true,
                      "description": "SeaweedFS S3 endpoint (private network). Onyx uses path-style addressing.",
                      "defaultValue": "http://${{SeaweedFS.RAILWAY_PRIVATE_DOMAIN}}:8333"
                    },
                    "USER_AUTH_SECRET": {
                      "isOptional": true,
                      "description": "Must match api-server.",
                      "defaultValue": "${{api-server.USER_AUTH_SECRET}}"
                    },
                    "DISCORD_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. Enables the Discord bot.",
                      "defaultValue": ""
                    },
                    "MODEL_SERVER_HOST": {
                      "isOptional": true,
                      "description": "Inference model server (query embeddings, reranking).",
                      "defaultValue": "${{inference-model-server.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres password.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "FILE_STORE_BACKEND": {
                      "isOptional": true,
                      "description": "Uploaded files and connector blobs go to S3-compatible storage (SeaweedFS).",
                      "defaultValue": "s3"
                    },
                    "API_SERVER_PROTOCOL": {
                      "isOptional": true,
                      "description": "Protocol for internal calls to the API (Discord bot).",
                      "defaultValue": "http"
                    },
                    "S3_AWS_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "SeaweedFS S3 access key.",
                      "defaultValue": "${{SeaweedFS.AWS_ACCESS_KEY_ID}}"
                    },
                    "ENCRYPTION_KEY_SECRET": {
                      "isOptional": true,
                      "description": "Must match api-server.",
                      "defaultValue": "${{api-server.ENCRYPTION_KEY_SECRET}}"
                    },
                    "S3_AWS_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "SeaweedFS S3 secret key.",
                      "defaultValue": "${{SeaweedFS.AWS_SECRET_ACCESS_KEY}}"
                    },
                    "OPENSEARCH_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "OpenSearch admin password (reference).",
                      "defaultValue": "${{opensearch.OPENSEARCH_INITIAL_ADMIN_PASSWORD}}"
                    },
                    "S3_FILE_STORE_BUCKET_NAME": {
                      "isOptional": true,
                      "description": "Bucket created by Onyx on first start.",
                      "defaultValue": "onyx-file-store-bucket"
                    },
                    "INDEXING_MODEL_SERVER_HOST": {
                      "isOptional": true,
                      "description": "Indexing model server (document embeddings).",
                      "defaultValue": "${{indexing-model-server.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Give Celery workers time to finish tasks during redeploys.",
                      "defaultValue": "120"
                    },
                    "ENABLE_PAID_ENTERPRISE_EDITION_FEATURES": {
                      "isOptional": true,
                      "description": "Enterprise features need an Onyx license.",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "nginx",
      "method": "GET",
      "path": "/nginx-health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 10,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T16:14:40.554Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T14:43:29.022Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7232db1dc9134a4ebc4c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 158,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "background"
  }
}
