{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9549c008-4a2b-44cb-a89b-c31b1bc0a2fd",
    "slug": "ragflow-1",
    "name": "RAGFlow",
    "description": "Deep-document RAG with citations, v0.27.2 digest-pinned",
    "url": "https://railway.com/deploy/ragflow-1",
    "upstream": {
      "image": "infiniflow/ragflow:v0.27.2@sha256:e6b3f1a185c0a70abb3a72e1092415df8c5c6a4fae0089545554f2936c4b27ab"
    }
  },
  "services": [
    {
      "name": "MinIO",
      "source": {
        "image": "pgsty/silo:RELEASE.2026-08-06T00-00-00Z@sha256:29a498b24669cae1fed11c1a2fb2b3d73c68829a0a9c0b14e71b386671d38fac"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:8.4.11@sha256:24989179f58856db763f418010c1169fecc944e3ec1ea7e921572d83eb070f70"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.10@sha256:47670742d7924adbcdb404d1288b6327815b23141969c0939b8e5d61f78c2634"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "ragflow",
      "source": {
        "image": "infiniflow/ragflow:v0.27.2@sha256:e6b3f1a185c0a70abb3a72e1092415df8c5c6a4fae0089545554f2936c4b27ab"
      },
      "needs_volume": true,
      "volume_mount_path": "/ragflow/logs",
      "http": true
    },
    {
      "name": "Elasticsearch",
      "source": {
        "image": "elasticsearch:8.11.3@sha256:58a3a280935d830215802322e9a0373faaacdfd646477aa7e718939c2f29292a"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "MinIO",
      "description": "MinIO S3 API port (9000).",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "MinIO",
      "description": "MinIO root user (ragflow).",
      "secret": false,
      "strategy": "default",
      "default": "ragflow"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "MinIO",
      "description": "MinIO root password, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Private hostname of the MySQL service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "MySQL port (3306).",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "MySQL user (root).",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private MySQL connection URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Alias of the database name for other services.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Alias of the root password for other services.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot (rag_flow).",
      "secret": false,
      "strategy": "default",
      "default": "rag_flow"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "MySQL root password, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname of the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis port (6379).",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Redis user (default).",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private Redis connection URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of the Redis password for other services.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis password, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "ragflow",
      "description": "Container timezone (UTC).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "ragflow",
      "description": "Public port Railway routes to; nginx serves UI and API (80).",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DEVICE",
      "service": "ragflow",
      "description": "Compute device for DeepDoc models; cpu.",
      "secret": false,
      "strategy": "default",
      "default": "cpu"
    },
    {
      "key": "DB_TYPE",
      "service": "ragflow",
      "description": "Metadata database type; mysql.",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "ES_HOST",
      "service": "ragflow",
      "description": "Elasticsearch private hostname; port 9200 is added.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ES_USER",
      "service": "ragflow",
      "description": "Elasticsearch user (elastic).",
      "secret": false,
      "strategy": "default",
      "default": "elastic"
    },
    {
      "key": "DOC_ENGINE",
      "service": "ragflow",
      "description": "Document engine backend; elasticsearch.",
      "secret": false,
      "strategy": "default",
      "default": "elasticsearch"
    },
    {
      "key": "MINIO_HOST",
      "service": "ragflow",
      "description": "MinIO private hostname; RAGFlow appends port 9000.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MINIO_USER",
      "service": "ragflow",
      "description": "MinIO root user from the MinIO service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_HOST",
      "service": "ragflow",
      "description": "MySQL private hostname from the MySQL service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_PORT",
      "service": "ragflow",
      "description": "MySQL port from the MySQL service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_USER",
      "service": "ragflow",
      "description": "MySQL user from the MySQL service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "ragflow",
      "description": "Redis private hostname; RAGFlow appends port 6379.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HF_ENDPOINT",
      "service": "ragflow",
      "description": "Hugging Face endpoint for model downloads.",
      "secret": false,
      "strategy": "default",
      "default": "https://huggingface.co"
    },
    {
      "key": "USE_DOCLING",
      "service": "ragflow",
      "description": "Install and use Docling parser at boot; false.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "MYSQL_DBNAME",
      "service": "ragflow",
      "description": "MySQL database name (rag_flow).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOC_BULK_SIZE",
      "service": "ragflow",
      "description": "Chunks written to the doc engine per batch (4).",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "MINIO_PASSWORD",
      "service": "ragflow",
      "description": "MinIO root password from the MinIO service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "ragflow",
      "description": "MySQL password from the MySQL service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "ragflow",
      "description": "Redis password from the Redis service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_PROXY_SCHEME",
      "service": "ragflow",
      "description": "API proxy mode; python (upstream default).",
      "secret": false,
      "strategy": "default",
      "default": "python"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "ragflow",
      "description": "Elasticsearch password from the Elasticsearch service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_MAX_PACKET",
      "service": "ragflow",
      "description": "Max MySQL packet size in bytes (1 GB).",
      "secret": false,
      "strategy": "default",
      "default": "1073741824"
    },
    {
      "key": "REGISTER_ENABLED",
      "service": "ragflow",
      "description": "Allow sign-up (1); set 0 after creating accounts.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RAGFLOW_PUBLIC_URL",
      "service": "ragflow",
      "description": "Public URL for reference only; not read by RAGFlow.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAGFLOW_SECRET_KEY",
      "service": "ragflow",
      "description": "Signs sessions and API tokens; changing it logs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "EMBEDDING_BATCH_SIZE",
      "service": "ragflow",
      "description": "Texts sent per embedding request (16).",
      "secret": false,
      "strategy": "default",
      "default": "16"
    },
    {
      "key": "ADMIN_DEFAULT_PASSWORD",
      "service": "ragflow",
      "description": "Built-in superuser password, set on first creation only.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DEFAULT_SUPERUSER_EMAIL",
      "service": "ragflow",
      "description": "Built-in superuser email (admin@ragflow.io).",
      "secret": false,
      "strategy": "default",
      "default": "admin@ragflow.io"
    },
    {
      "key": "THREAD_POOL_MAX_WORKERS",
      "service": "ragflow",
      "description": "Max worker threads for background tasks (128).",
      "secret": false,
      "strategy": "default",
      "default": "128"
    },
    {
      "key": "PORT",
      "service": "Elasticsearch",
      "description": "Elasticsearch HTTP port (9200).",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "node.name",
      "service": "Elasticsearch",
      "description": "Node name (es01).",
      "secret": false,
      "strategy": "default",
      "default": "es01"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "Elasticsearch",
      "description": "JVM heap size (1 GB); raise for large knowledge bases.",
      "secret": false,
      "strategy": "default",
      "default": "-Xms1g -Xmx1g"
    },
    {
      "key": "cluster.name",
      "service": "Elasticsearch",
      "description": "Cluster name (ragflow).",
      "secret": false,
      "strategy": "default",
      "default": "ragflow"
    },
    {
      "key": "discovery.type",
      "service": "Elasticsearch",
      "description": "Single-node cluster mode.",
      "secret": false,
      "strategy": "default",
      "default": "single-node"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Elasticsearch",
      "description": "Start as root (0) so the start command can chown the volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "Elasticsearch",
      "description": "Password for the elastic user, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "xpack.ml.enabled",
      "service": "Elasticsearch",
      "description": "Machine learning features; off to save memory.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "bootstrap.memory_lock",
      "service": "Elasticsearch",
      "description": "Lock heap in RAM; off because Railway cannot raise memlock.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "node.store.allow_mmap",
      "service": "Elasticsearch",
      "description": "Use mmap for index files; off so vm.max_map_count is not needed.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "xpack.security.enabled",
      "service": "Elasticsearch",
      "description": "Require authentication (true).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ingest.geoip.downloader.enabled",
      "service": "Elasticsearch",
      "description": "GeoIP database downloads; off.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "xpack.security.http.ssl.enabled",
      "service": "Elasticsearch",
      "description": "HTTPS on the REST API; off on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "xpack.security.transport.ssl.enabled",
      "service": "Elasticsearch",
      "description": "TLS between nodes; off for one node.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ragflow-1"
      }
    },
    "cli": "railway deploy --template ragflow-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9549c008-4a2b-44cb-a89b-c31b1bc0a2fd",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2a0af0c1-dc19-4cd8-aabe-5ef55965c16e": {
                  "icon": null,
                  "name": "MinIO",
                  "deploy": {
                    "startCommand": "/usr/bin/docker-entrypoint.sh silo server /data --address :9000 --console-address :9001",
                    "healthcheckPath": "/minio/health/live",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgsty/silo:RELEASE.2026-08-06T00-00-00Z@sha256:29a498b24669cae1fed11c1a2fb2b3d73c68829a0a9c0b14e71b386671d38fac"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "MinIO S3 API port (9000).",
                      "defaultValue": "9000"
                    },
                    "MINIO_ROOT_USER": {
                      "isOptional": false,
                      "description": "MinIO root user (ragflow).",
                      "defaultValue": "ragflow"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MinIO root password, generated per deploy.",
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "2a0af0c1-dc19-4cd8-aabe-5ef55965c16e": {
                      "mountPath": "/data"
                    }
                  }
                },
                "5ac91f76-111d-405b-997a-707269169d08": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G --max-connections=1000 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-allowed-packet=1073741824",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8.4.11@sha256:24989179f58856db763f418010c1169fecc944e3ec1ea7e921572d83eb070f70"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Private hostname of the MySQL service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "MySQL port (3306).",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "MySQL user (root).",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private MySQL connection URL.",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Alias of the database name for other services.",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of the root password for other services.",
                      "defaultValue": "${{MYSQL_ROOT_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot (rag_flow).",
                      "defaultValue": "rag_flow"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "MySQL root password, generated per deploy.",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "5ac91f76-111d-405b-997a-707269169d08": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "87cf0b7c-ba28-4170-8b4d-06224152aa49": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.10@sha256:47670742d7924adbcdb404d1288b6327815b23141969c0939b8e5d61f78c2634"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname of the Redis service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis port (6379).",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis user (default).",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private Redis connection URL.",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of the Redis password for other services.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, generated per deploy.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "87cf0b7c-ba28-4170-8b4d-06224152aa49": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ea1be4cb-213f-415a-a437-9378b57b876a": {
                  "icon": null,
                  "name": "ragflow",
                  "deploy": {
                    "startCommand": "/ragflow/entrypoint.sh --enable-adminserver --init-model-provider-tables",
                    "healthcheckPath": "/api/v1/system/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "infiniflow/ragflow:v0.27.2@sha256:e6b3f1a185c0a70abb3a72e1092415df8c5c6a4fae0089545554f2936c4b27ab"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone (UTC).",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Public port Railway routes to; nginx serves UI and API (80).",
                      "defaultValue": "80"
                    },
                    "DEVICE": {
                      "isOptional": false,
                      "description": "Compute device for DeepDoc models; cpu.",
                      "defaultValue": "cpu"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Metadata database type; mysql.",
                      "defaultValue": "mysql"
                    },
                    "ES_HOST": {
                      "isOptional": false,
                      "description": "Elasticsearch private hostname; port 9200 is added.",
                      "defaultValue": "${{Elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ES_USER": {
                      "isOptional": false,
                      "description": "Elasticsearch user (elastic).",
                      "defaultValue": "elastic"
                    },
                    "DOC_ENGINE": {
                      "isOptional": false,
                      "description": "Document engine backend; elasticsearch.",
                      "defaultValue": "elasticsearch"
                    },
                    "MINIO_HOST": {
                      "isOptional": false,
                      "description": "MinIO private hostname; RAGFlow appends port 9000.",
                      "defaultValue": "${{MinIO.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MINIO_USER": {
                      "isOptional": false,
                      "description": "MinIO root user from the MinIO service.",
                      "defaultValue": "${{MinIO.MINIO_ROOT_USER}}"
                    },
                    "MYSQL_HOST": {
                      "isOptional": false,
                      "description": "MySQL private hostname from the MySQL service.",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "MYSQL_PORT": {
                      "isOptional": false,
                      "description": "MySQL port from the MySQL service.",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "MySQL user from the MySQL service.",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis private hostname; RAGFlow appends port 6379.",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "HF_ENDPOINT": {
                      "isOptional": false,
                      "description": "Hugging Face endpoint for model downloads.",
                      "defaultValue": "https://huggingface.co"
                    },
                    "USE_DOCLING": {
                      "isOptional": false,
                      "description": "Install and use Docling parser at boot; false.",
                      "defaultValue": "false"
                    },
                    "MYSQL_DBNAME": {
                      "isOptional": false,
                      "description": "MySQL database name (rag_flow).",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "DOC_BULK_SIZE": {
                      "isOptional": false,
                      "description": "Chunks written to the doc engine per batch (4).",
                      "defaultValue": "4"
                    },
                    "MINIO_PASSWORD": {
                      "isOptional": false,
                      "description": "MinIO root password from the MinIO service.",
                      "defaultValue": "${{MinIO.MINIO_ROOT_PASSWORD}}"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "MySQL password from the MySQL service.",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password from the Redis service.",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "API_PROXY_SCHEME": {
                      "isOptional": false,
                      "description": "API proxy mode; python (upstream default).",
                      "defaultValue": "python"
                    },
                    "ELASTIC_PASSWORD": {
                      "isOptional": false,
                      "description": "Elasticsearch password from the Elasticsearch service.",
                      "defaultValue": "${{Elasticsearch.ELASTIC_PASSWORD}}"
                    },
                    "MYSQL_MAX_PACKET": {
                      "isOptional": false,
                      "description": "Max MySQL packet size in bytes (1 GB).",
                      "defaultValue": "1073741824"
                    },
                    "REGISTER_ENABLED": {
                      "isOptional": false,
                      "description": "Allow sign-up (1); set 0 after creating accounts.",
                      "defaultValue": "1"
                    },
                    "RAGFLOW_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL for reference only; not read by RAGFlow.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAGFLOW_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs sessions and API tokens; changing it logs everyone out.",
                      "defaultValue": "{{RAGFLOW_SECRET_KEY}}"
                    },
                    "EMBEDDING_BATCH_SIZE": {
                      "isOptional": false,
                      "description": "Texts sent per embedding request (16).",
                      "defaultValue": "16"
                    },
                    "ADMIN_DEFAULT_PASSWORD": {
                      "isOptional": false,
                      "description": "Built-in superuser password, set on first creation only.",
                      "defaultValue": "{{ADMIN_DEFAULT_PASSWORD}}"
                    },
                    "DEFAULT_SUPERUSER_EMAIL": {
                      "isOptional": false,
                      "description": "Built-in superuser email (admin@ragflow.io).",
                      "defaultValue": "admin@ragflow.io"
                    },
                    "THREAD_POOL_MAX_WORKERS": {
                      "isOptional": false,
                      "description": "Max worker threads for background tasks (128).",
                      "defaultValue": "128"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "ea1be4cb-213f-415a-a437-9378b57b876a": {
                      "mountPath": "/ragflow/logs"
                    }
                  }
                },
                "f56d78d2-a087-42a2-96a0-acb1f04a466a": {
                  "icon": null,
                  "name": "Elasticsearch",
                  "deploy": {
                    "startCommand": "/bin/bash -c \"rm -rf /usr/share/elasticsearch/data/lost+found; chown -R 1000:0 /usr/share/elasticsearch/data && cd /usr/share/elasticsearch && exec setpriv --reuid=1000 --regid=0 --clear-groups env HOME=/usr/share/elasticsearch /bin/tini -- /usr/local/bin/docker-entrypoint.sh eswrapper\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "elasticsearch:8.11.3@sha256:58a3a280935d830215802322e9a0373faaacdfd646477aa7e718939c2f29292a"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Elasticsearch HTTP port (9200).",
                      "defaultValue": "9200"
                    },
                    "node.name": {
                      "isOptional": false,
                      "description": "Node name (es01).",
                      "defaultValue": "es01"
                    },
                    "ES_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap size (1 GB); raise for large knowledge bases.",
                      "defaultValue": "-Xms1g -Xmx1g"
                    },
                    "cluster.name": {
                      "isOptional": false,
                      "description": "Cluster name (ragflow).",
                      "defaultValue": "ragflow"
                    },
                    "discovery.type": {
                      "isOptional": false,
                      "description": "Single-node cluster mode.",
                      "defaultValue": "single-node"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start as root (0) so the start command can chown the volume.",
                      "defaultValue": "0"
                    },
                    "ELASTIC_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the elastic user, generated per deploy.",
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "xpack.ml.enabled": {
                      "isOptional": false,
                      "description": "Machine learning features; off to save memory.",
                      "defaultValue": "false"
                    },
                    "bootstrap.memory_lock": {
                      "isOptional": false,
                      "description": "Lock heap in RAM; off because Railway cannot raise memlock.",
                      "defaultValue": "false"
                    },
                    "node.store.allow_mmap": {
                      "isOptional": false,
                      "description": "Use mmap for index files; off so vm.max_map_count is not needed.",
                      "defaultValue": "false"
                    },
                    "xpack.security.enabled": {
                      "isOptional": false,
                      "description": "Require authentication (true).",
                      "defaultValue": "true"
                    },
                    "ingest.geoip.downloader.enabled": {
                      "isOptional": false,
                      "description": "GeoIP database downloads; off.",
                      "defaultValue": "false"
                    },
                    "xpack.security.http.ssl.enabled": {
                      "isOptional": false,
                      "description": "HTTPS on the REST API; off on the private network.",
                      "defaultValue": "false"
                    },
                    "xpack.security.transport.ssl.enabled": {
                      "isOptional": false,
                      "description": "TLS between nodes; off for one node.",
                      "defaultValue": "false"
                    }
                  },
                  "volumeMounts": {
                    "f56d78d2-a087-42a2-96a0-acb1f04a466a": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ragflow",
      "method": "GET",
      "path": "/api/v1/system/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-10-16T10:14:44.004Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-16T05:59:28.120Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5787fa3bcba94952ad05",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 172,
    "typical_build_seconds": 0,
    "typical_start_seconds": 104,
    "slowest_service": "ragflow"
  }
}
