{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f3dee449-1a7f-4888-b26a-8dcfeb955d7c",
    "slug": "ragflow-ai",
    "name": "RAGFlow",
    "description": "Turns your documents into a searchable, citable knowledge base",
    "url": "https://railway.com/deploy/ragflow-ai",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/ragflow-railway"
    }
  },
  "services": [
    {
      "name": "ragflow",
      "source": {
        "repo": "https://github.com/gridalpha/ragflow-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "elasticsearch",
      "source": {
        "repo": "https://github.com/gridalpha/ragflow-elasticsearch-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": false
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "tei",
      "source": {
        "image": "ghcr.io/huggingface/text-embeddings-inference:cpu-1.8"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "ragflow",
      "description": "Container timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "ragflow",
      "description": "Port Railway probes and routes to",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DB_TYPE",
      "service": "ragflow",
      "description": "Metadata database flavour",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "ES_HOST",
      "service": "ragflow",
      "description": "Private Elasticsearch host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ES_USER",
      "service": "ragflow",
      "description": "Elasticsearch superuser",
      "secret": false,
      "strategy": "default",
      "default": "elastic"
    },
    {
      "key": "TEI_HOST",
      "service": "ragflow",
      "description": "Private embedding server host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEI_PORT",
      "service": "ragflow",
      "description": "Private embedding server port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "S3_BUCKET",
      "service": "ragflow",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "ragflow",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TEI_MODEL",
      "service": "ragflow",
      "description": "Must match MODEL_ID on tei",
      "secret": false,
      "strategy": "default",
      "default": "BAAI/bge-small-en-v1.5"
    },
    {
      "key": "DOC_ENGINE",
      "service": "ragflow",
      "description": "Chunk store and retrieval backend",
      "secret": false,
      "strategy": "default",
      "default": "elasticsearch"
    },
    {
      "key": "MYSQL_HOST",
      "service": "ragflow",
      "description": "Private MySQL host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQL_PORT",
      "service": "ragflow",
      "description": "MySQL port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQL_USER",
      "service": "ragflow",
      "description": "Metadata database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "ragflow",
      "description": "Private Redis host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQL_DBNAME",
      "service": "ragflow",
      "description": "Metadata database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_IMPL",
      "service": "ragflow",
      "description": "Object storage backend",
      "secret": false,
      "strategy": "default",
      "default": "AWS_S3"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "ragflow",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "ragflow",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "ragflow",
      "description": "Metadata database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "ragflow",
      "description": "Redis auth password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_PREFIX_PATH",
      "service": "ragflow",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "ragflow"
    },
    {
      "key": "ENABLE_REGISTER",
      "service": "ragflow",
      "description": "Hides the signup link in the UI",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "S3_ENDPOINT_URL",
      "service": "ragflow",
      "description": "Bucket endpoint with scheme",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_PROXY_SCHEME",
      "service": "ragflow",
      "description": "Serve the Python API, not the Go one",
      "secret": false,
      "strategy": "default",
      "default": "python"
    },
    {
      "key": "COMPOSE_PROFILES",
      "service": "ragflow",
      "description": "Enables the Builtin embedding provider",
      "secret": false,
      "strategy": "default",
      "default": "tei-cpu"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "ragflow",
      "description": "Elasticsearch password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REGISTER_ENABLED",
      "service": "ragflow",
      "description": "Self-service signup, enforced server-side",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAGFLOW_SECRET_KEY",
      "service": "ragflow",
      "description": "Session signing key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MYSQL_MAX_CONNECTIONS",
      "service": "ragflow",
      "description": "Connection pool ceiling",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "RAGFLOW_WAIT_ATTEMPTS",
      "service": "ragflow",
      "description": "Wait attempts, five seconds apart",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "RAGFLOW_WAIT_FOR_DEPS",
      "service": "ragflow",
      "description": "Wait for search and embeddings at boot",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DEFAULT_SUPERUSER_EMAIL",
      "service": "ragflow",
      "description": "First administrator's login email",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "DEFAULT_SUPERUSER_NICKNAME",
      "service": "ragflow",
      "description": "First administrator's display name",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DEFAULT_SUPERUSER_PASSWORD",
      "service": "ragflow",
      "description": "First administrator's password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "ragflow",
      "description": "Lets a parse task finish on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "elasticsearch",
      "description": "Port Railway probes",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "http.port",
      "service": "elasticsearch",
      "description": "Elasticsearch HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "node.name",
      "service": "elasticsearch",
      "description": "Node name",
      "secret": false,
      "strategy": "default",
      "default": "es01"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "elasticsearch",
      "description": "JVM heap size",
      "secret": false,
      "strategy": "default",
      "default": "-Xms2g -Xmx2g"
    },
    {
      "key": "network.host",
      "service": "elasticsearch",
      "description": "Dual-stack bind, quoted for the settings file",
      "secret": false,
      "strategy": "default",
      "default": "\"::\""
    },
    {
      "key": "discovery.type",
      "service": "elasticsearch",
      "description": "Skips multi-node bootstrap checks",
      "secret": false,
      "strategy": "default",
      "default": "single-node"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "elasticsearch",
      "description": "Password for the elastic user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TAKE_FILE_OWNERSHIP",
      "service": "elasticsearch",
      "description": "Chown the data directory at boot",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "bootstrap.memory_lock",
      "service": "elasticsearch",
      "description": "Memory locking unavailable in containers",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "node.store.allow_mmap",
      "service": "elasticsearch",
      "description": "vm.max_map_count is not settable here",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "xpack.security.enabled",
      "service": "elasticsearch",
      "description": "Require authentication",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "xpack.security.http.ssl.enabled",
      "service": "elasticsearch",
      "description": "Private traffic only",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "xpack.security.authc.anonymous.roles",
      "service": "elasticsearch",
      "description": "Read-only monitoring access",
      "secret": false,
      "strategy": "default",
      "default": "monitoring_user"
    },
    {
      "key": "xpack.security.transport.ssl.enabled",
      "service": "elasticsearch",
      "description": "Single node, no transport TLS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "xpack.security.authc.anonymous.username",
      "service": "elasticsearch",
      "description": "Anonymous identity for health checks",
      "secret": false,
      "strategy": "default",
      "default": "probe"
    },
    {
      "key": "cluster.routing.allocation.disk.watermark.low",
      "service": "elasticsearch",
      "description": "Relative to the volume size",
      "secret": false,
      "strategy": "default",
      "default": "85%"
    },
    {
      "key": "cluster.routing.allocation.disk.watermark.high",
      "service": "elasticsearch",
      "description": "Relative to the volume size",
      "secret": false,
      "strategy": "default",
      "default": "90%"
    },
    {
      "key": "xpack.security.authc.anonymous.authz_exception",
      "service": "elasticsearch",
      "description": "Return 403 rather than 401",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "cluster.routing.allocation.disk.watermark.flood_stage",
      "service": "elasticsearch",
      "description": "Relative to the volume size",
      "secret": false,
      "strategy": "default",
      "default": "95%"
    },
    {
      "key": "cluster.routing.allocation.disk.watermark.flood_stage.frozen",
      "service": "elasticsearch",
      "description": "Relative to the volume size",
      "secret": false,
      "strategy": "default",
      "default": "95%"
    },
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password, read by the entrypoint",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "tei",
      "description": "HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "HOSTNAME",
      "service": "tei",
      "description": "Dual-stack bind for the private network",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "MODEL_ID",
      "service": "tei",
      "description": "Embedding model to load",
      "secret": false,
      "strategy": "default",
      "default": "BAAI/bge-small-en-v1.5"
    },
    {
      "key": "AUTO_TRUNCATE",
      "service": "tei",
      "description": "Truncate over-long inputs instead of failing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAYON_NUM_THREADS",
      "service": "tei",
      "description": "Worker threads, matched to the CPU quota",
      "secret": false,
      "strategy": "default",
      "default": "8"
    },
    {
      "key": "HUGGINGFACE_HUB_CACHE",
      "service": "tei",
      "description": "Model cache on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "MAX_CLIENT_BATCH_SIZE",
      "service": "tei",
      "description": "Maximum inputs per request",
      "secret": false,
      "strategy": "default",
      "default": "64"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ragflow-ai"
      }
    },
    "cli": "railway deploy --template ragflow-ai",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f3dee449-1a7f-4888-b26a-8dcfeb955d7c",
            "serializedConfig": {
              "buckets": {
                "4a334b19-455d-48b3-a198-d9142559500e": {
                  "name": "ragflow-storage"
                }
              },
              "services": {
                "07a72bef-459c-4b2a-b951-e7ea3b4d01e8": {
                  "icon": "https://raw.githubusercontent.com/infiniflow/ragflow/v0.27.1/web/public/logo.svg",
                  "name": "ragflow",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/ragflow-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes and routes to",
                      "defaultValue": "80"
                    },
                    "DB_TYPE": {
                      "isOptional": false,
                      "description": "Metadata database flavour",
                      "defaultValue": "mysql"
                    },
                    "ES_HOST": {
                      "isOptional": false,
                      "description": "Private Elasticsearch host",
                      "defaultValue": "${{elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ES_USER": {
                      "isOptional": false,
                      "description": "Elasticsearch superuser",
                      "defaultValue": "elastic"
                    },
                    "TEI_HOST": {
                      "isOptional": false,
                      "description": "Private embedding server host",
                      "defaultValue": "${{tei.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "TEI_PORT": {
                      "isOptional": false,
                      "description": "Private embedding server port",
                      "defaultValue": "80"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{ragflow-storage.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{ragflow-storage.REGION}}"
                    },
                    "TEI_MODEL": {
                      "isOptional": false,
                      "description": "Must match MODEL_ID on tei",
                      "defaultValue": "BAAI/bge-small-en-v1.5"
                    },
                    "DOC_ENGINE": {
                      "isOptional": false,
                      "description": "Chunk store and retrieval backend",
                      "defaultValue": "elasticsearch"
                    },
                    "MYSQL_HOST": {
                      "isOptional": false,
                      "description": "Private MySQL host",
                      "defaultValue": "${{MySQL.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQL_PORT": {
                      "isOptional": false,
                      "description": "MySQL port",
                      "defaultValue": "3306"
                    },
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Metadata database user",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Private Redis host",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQL_DBNAME": {
                      "isOptional": false,
                      "description": "Metadata database name",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "STORAGE_IMPL": {
                      "isOptional": false,
                      "description": "Object storage backend",
                      "defaultValue": "AWS_S3"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{ragflow-storage.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{ragflow-storage.SECRET_ACCESS_KEY}}"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Metadata database password",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis auth password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "S3_PREFIX_PATH": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "ragflow"
                    },
                    "ENABLE_REGISTER": {
                      "isOptional": false,
                      "description": "Hides the signup link in the UI",
                      "defaultValue": "0"
                    },
                    "S3_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "Bucket endpoint with scheme",
                      "defaultValue": "${{ragflow-storage.ENDPOINT}}"
                    },
                    "API_PROXY_SCHEME": {
                      "isOptional": false,
                      "description": "Serve the Python API, not the Go one",
                      "defaultValue": "python"
                    },
                    "COMPOSE_PROFILES": {
                      "isOptional": false,
                      "description": "Enables the Builtin embedding provider",
                      "defaultValue": "tei-cpu"
                    },
                    "ELASTIC_PASSWORD": {
                      "isOptional": false,
                      "description": "Elasticsearch password",
                      "defaultValue": "${{elasticsearch.ELASTIC_PASSWORD}}"
                    },
                    "REGISTER_ENABLED": {
                      "isOptional": false,
                      "description": "Self-service signup, enforced server-side",
                      "defaultValue": "0"
                    },
                    "RAGFLOW_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Session signing key",
                      "defaultValue": "{{RAGFLOW_SECRET_KEY}}"
                    },
                    "MYSQL_MAX_CONNECTIONS": {
                      "isOptional": false,
                      "description": "Connection pool ceiling",
                      "defaultValue": "100"
                    },
                    "RAGFLOW_WAIT_ATTEMPTS": {
                      "description": "Wait attempts, five seconds apart",
                      "defaultValue": "60"
                    },
                    "RAGFLOW_WAIT_FOR_DEPS": {
                      "description": "Wait for search and embeddings at boot",
                      "defaultValue": "1"
                    },
                    "DEFAULT_SUPERUSER_EMAIL": {
                      "isOptional": false,
                      "description": "First administrator's login email",
                      "defaultValue": "admin@example.com"
                    },
                    "DEFAULT_SUPERUSER_NICKNAME": {
                      "isOptional": false,
                      "description": "First administrator's display name",
                      "defaultValue": "admin"
                    },
                    "DEFAULT_SUPERUSER_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator's password",
                      "defaultValue": "{{DEFAULT_SUPERUSER_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Lets a parse task finish on redeploy",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                },
                "1b4098a7-188c-44d0-9d0e-35630472a182": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.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"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "1b4098a7-188c-44d0-9d0e-35630472a182": {
                      "mountPath": "/data"
                    }
                  }
                },
                "30b4b80a-d07e-474a-b070-375f3de6138a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/elasticsearch.svg",
                  "name": "elasticsearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/ragflow-elasticsearch-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes",
                      "defaultValue": "9200"
                    },
                    "http.port": {
                      "isOptional": false,
                      "description": "Elasticsearch HTTP port",
                      "defaultValue": "9200"
                    },
                    "node.name": {
                      "isOptional": false,
                      "description": "Node name",
                      "defaultValue": "es01"
                    },
                    "ES_JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM heap size",
                      "defaultValue": "-Xms2g -Xmx2g"
                    },
                    "network.host": {
                      "isOptional": false,
                      "description": "Dual-stack bind, quoted for the settings file",
                      "defaultValue": "\"::\""
                    },
                    "discovery.type": {
                      "isOptional": false,
                      "description": "Skips multi-node bootstrap checks",
                      "defaultValue": "single-node"
                    },
                    "ELASTIC_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the elastic user",
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "TAKE_FILE_OWNERSHIP": {
                      "isOptional": false,
                      "description": "Chown the data directory at boot",
                      "defaultValue": "1"
                    },
                    "bootstrap.memory_lock": {
                      "isOptional": false,
                      "description": "Memory locking unavailable in containers",
                      "defaultValue": "false"
                    },
                    "node.store.allow_mmap": {
                      "isOptional": false,
                      "description": "vm.max_map_count is not settable here",
                      "defaultValue": "false"
                    },
                    "xpack.security.enabled": {
                      "isOptional": false,
                      "description": "Require authentication",
                      "defaultValue": "true"
                    },
                    "xpack.security.http.ssl.enabled": {
                      "isOptional": false,
                      "description": "Private traffic only",
                      "defaultValue": "false"
                    },
                    "xpack.security.authc.anonymous.roles": {
                      "isOptional": false,
                      "description": "Read-only monitoring access",
                      "defaultValue": "monitoring_user"
                    },
                    "xpack.security.transport.ssl.enabled": {
                      "isOptional": false,
                      "description": "Single node, no transport TLS",
                      "defaultValue": "false"
                    },
                    "xpack.security.authc.anonymous.username": {
                      "isOptional": false,
                      "description": "Anonymous identity for health checks",
                      "defaultValue": "probe"
                    },
                    "cluster.routing.allocation.disk.watermark.low": {
                      "isOptional": false,
                      "description": "Relative to the volume size",
                      "defaultValue": "85%"
                    },
                    "cluster.routing.allocation.disk.watermark.high": {
                      "isOptional": false,
                      "description": "Relative to the volume size",
                      "defaultValue": "90%"
                    },
                    "xpack.security.authc.anonymous.authz_exception": {
                      "isOptional": false,
                      "description": "Return 403 rather than 401",
                      "defaultValue": "false"
                    },
                    "cluster.routing.allocation.disk.watermark.flood_stage": {
                      "isOptional": false,
                      "description": "Relative to the volume size",
                      "defaultValue": "95%"
                    },
                    "cluster.routing.allocation.disk.watermark.flood_stage.frozen": {
                      "isOptional": false,
                      "description": "Relative to the volume size",
                      "defaultValue": "95%"
                    }
                  },
                  "volumeMounts": {
                    "30b4b80a-d07e-474a-b070-375f3de6138a": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                },
                "60a87678-032f-4ced-872f-5b9ed64958ec": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/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",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password, read by the entrypoint",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "60a87678-032f-4ced-872f-5b9ed64958ec": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "c82fdd6d-9d49-455d-b31e-c4964866a600": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/hugging-face.svg",
                  "name": "tei",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/huggingface/text-embeddings-inference:cpu-1.8"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port",
                      "defaultValue": "80"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Dual-stack bind for the private network",
                      "defaultValue": "::"
                    },
                    "MODEL_ID": {
                      "isOptional": false,
                      "description": "Embedding model to load",
                      "defaultValue": "BAAI/bge-small-en-v1.5"
                    },
                    "AUTO_TRUNCATE": {
                      "isOptional": false,
                      "description": "Truncate over-long inputs instead of failing",
                      "defaultValue": "true"
                    },
                    "RAYON_NUM_THREADS": {
                      "isOptional": false,
                      "description": "Worker threads, matched to the CPU quota",
                      "defaultValue": "8"
                    },
                    "HUGGINGFACE_HUB_CACHE": {
                      "isOptional": false,
                      "description": "Model cache on the volume",
                      "defaultValue": "/data"
                    },
                    "MAX_CLIENT_BATCH_SIZE": {
                      "isOptional": false,
                      "description": "Maximum inputs per request",
                      "defaultValue": "64"
                    }
                  },
                  "volumeMounts": {
                    "c82fdd6d-9d49-455d-b31e-c4964866a600": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T12:45:57.717Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_8b8c28d079bf47f9b9cc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 209
  }
}
