{
  "manifest_version": "1.0.0",
  "template": {
    "id": "294a3f7f-2b0e-4532-86af-2a893c63a993",
    "slug": "libre-chat",
    "name": "LibreChat",
    "description": "Private multi-provider AI chat: agents, code interpreter, document RAG",
    "url": "https://railway.com/deploy/libre-chat",
    "upstream": {
      "image": "ghcr.io/danny-avila/librechat:v0.8.7"
    }
  },
  "services": [
    {
      "name": "LibreChat",
      "source": {
        "image": "ghcr.io/danny-avila/librechat:v0.8.7"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/client/public/images",
      "http": true
    },
    {
      "name": "meilisearch",
      "source": {
        "image": "getmeili/meilisearch:v1.35.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/meili_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": "MongoDB",
      "source": {
        "image": "mongo:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    },
    {
      "name": "rag-api",
      "source": {
        "image": "ghcr.io/danny-avila/librechat-rag-api-dev:v0.8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/hf-cache",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "LibreChat",
      "description": "Bind address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "LibreChat",
      "description": "HTTP port, matches public target port",
      "secret": false,
      "strategy": "default",
      "default": "3080"
    },
    {
      "key": "SEARCH",
      "service": "LibreChat",
      "description": "Enable conversation and message search",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CREDS_IV",
      "service": "LibreChat",
      "description": "Init vector for credential encryption",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NODE_ENV",
      "service": "LibreChat",
      "description": "Production runtime mode",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "NO_INDEX",
      "service": "LibreChat",
      "description": "Block search engine indexing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAG_PORT",
      "service": "LibreChat",
      "description": "RAG service port for internal calls",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "CREDS_KEY",
      "service": "LibreChat",
      "description": "Encrypts stored provider credentials",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MONGO_URI",
      "service": "LibreChat",
      "description": "Primary datastore, admin auth source",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JWT_SECRET",
      "service": "LibreChat",
      "description": "Signs access tokens, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILI_HOST",
      "service": "LibreChat",
      "description": "Private Meilisearch endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAG_API_URL",
      "service": "LibreChat",
      "description": "Private document embedding endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TRUST_PROXY",
      "service": "LibreChat",
      "description": "Trust one reverse proxy hop",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DOMAIN_CLIENT",
      "service": "LibreChat",
      "description": "Public front-end URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOMAIN_SERVER",
      "service": "LibreChat",
      "description": "Public API URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "LibreChat",
      "description": "Root user, required for volume writes",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "LibreChat",
      "description": "Shared Meilisearch authentication key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ALLOW_EMAIL_LOGIN",
      "service": "LibreChat",
      "description": "Permit email and password sign-in",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ALLOW_REGISTRATION",
      "service": "LibreChat",
      "description": "Open until the first admin exists",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ALLOW_SOCIAL_LOGIN",
      "service": "LibreChat",
      "description": "No OAuth providers configured",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "JWT_REFRESH_SECRET",
      "service": "LibreChat",
      "description": "Signs refresh tokens, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILI_NO_ANALYTICS",
      "service": "LibreChat",
      "description": "Disable Meilisearch telemetry",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MIN_PASSWORD_LENGTH",
      "service": "LibreChat",
      "description": "Minimum account password length",
      "secret": true,
      "strategy": "default",
      "default": "12"
    },
    {
      "key": "ALLOW_PASSWORD_RESET",
      "service": "LibreChat",
      "description": "No mail transport configured",
      "secret": true,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PORT",
      "service": "meilisearch",
      "description": "Port the health check probes",
      "secret": false,
      "strategy": "default",
      "default": "7700"
    },
    {
      "key": "MEILI_ENV",
      "service": "meilisearch",
      "description": "Disable the bundled dev dashboard",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "meilisearch",
      "description": "Master key for search API access",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILI_NO_ANALYTICS",
      "service": "meilisearch",
      "description": "Disable Meilisearch telemetry",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MEILI_MAX_INDEXING_THREADS",
      "service": "meilisearch",
      "description": "Caps thread pool, required on Railway",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory, a subdirectory of the volume mount",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Standard PostgreSQL port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "libpq alias of the superuser name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "libpq alias of the default database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "libpq alias of the superuser password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity window of the generated self-signed TLS certificate",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period for in-flight connections on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "Standard MongoDB port",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "Convenience alias of the root username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Private connection string, no database path — append /<db>?authSource=admin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "Convenience alias of the root password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_PUBLIC_URL",
      "service": "MongoDB",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Generated root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "Root user created on first boot, lives in the admin database",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    },
    {
      "key": "PORT",
      "service": "rag-api",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "DB_HOST",
      "service": "rag-api",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "rag-api",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "HF_HOME",
      "service": "rag-api",
      "description": "Model cache path on volume",
      "secret": false,
      "strategy": "default",
      "default": "/app/hf-cache"
    },
    {
      "key": "RAG_HOST",
      "service": "rag-api",
      "description": "Bind address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "RAG_PORT",
      "service": "rag-api",
      "description": "FastAPI listening port",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "JWT_SECRET",
      "service": "rag-api",
      "description": "Must match LibreChat token secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "rag-api",
      "description": "Vector store database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "rag-api",
      "description": "Postgres user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "VECTOR_DB_TYPE",
      "service": "rag-api",
      "description": "Use Postgres pgvector backend",
      "secret": false,
      "strategy": "default",
      "default": "pgvector"
    },
    {
      "key": "COLLECTION_NAME",
      "service": "rag-api",
      "description": "Vector collection name",
      "secret": false,
      "strategy": "default",
      "default": "librechat"
    },
    {
      "key": "EMBEDDINGS_MODEL",
      "service": "rag-api",
      "description": "Local sentence transformer model",
      "secret": false,
      "strategy": "default",
      "default": "sentence-transformers/all-MiniLM-L6-v2"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "rag-api",
      "description": "Postgres password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EMBEDDINGS_PROVIDER",
      "service": "rag-api",
      "description": "Local embeddings, no API key",
      "secret": false,
      "strategy": "default",
      "default": "huggingface"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "libre-chat"
      }
    },
    "cli": "railway deploy --template libre-chat",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "294a3f7f-2b0e-4532-86af-2a893c63a993",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4382bc34-9e4d-45b1-babd-b9bd492bfeb6": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/librechat.svg",
                  "name": "LibreChat",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/danny-avila/librechat:v0.8.7"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": false,
                      "description": "Bind address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port, matches public target port",
                      "defaultValue": "3080"
                    },
                    "SEARCH": {
                      "isOptional": false,
                      "description": "Enable conversation and message search",
                      "defaultValue": "true"
                    },
                    "CREDS_IV": {
                      "isOptional": false,
                      "description": "Init vector for credential encryption",
                      "defaultValue": "{{CREDS_IV}}"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Production runtime mode",
                      "defaultValue": "production"
                    },
                    "NO_INDEX": {
                      "isOptional": false,
                      "description": "Block search engine indexing",
                      "defaultValue": "true"
                    },
                    "RAG_PORT": {
                      "isOptional": false,
                      "description": "RAG service port for internal calls",
                      "defaultValue": "8000"
                    },
                    "CREDS_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored provider credentials",
                      "defaultValue": "{{CREDS_KEY}}"
                    },
                    "MONGO_URI": {
                      "isOptional": false,
                      "description": "Primary datastore, admin auth source",
                      "defaultValue": "${{MongoDB.MONGO_URL}}/LibreChat?authSource=admin"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs access tokens, keep stable",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "MEILI_HOST": {
                      "isOptional": false,
                      "description": "Private Meilisearch endpoint",
                      "defaultValue": "http://${{meilisearch.RAILWAY_PRIVATE_DOMAIN}}:7700"
                    },
                    "RAG_API_URL": {
                      "isOptional": false,
                      "description": "Private document embedding endpoint",
                      "defaultValue": "http://${{rag-api.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    },
                    "TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Trust one reverse proxy hop",
                      "defaultValue": "1"
                    },
                    "DOMAIN_CLIENT": {
                      "isOptional": false,
                      "description": "Public front-end URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DOMAIN_SERVER": {
                      "isOptional": false,
                      "description": "Public API URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Root user, required for volume writes",
                      "defaultValue": "0"
                    },
                    "MEILI_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Shared Meilisearch authentication key",
                      "defaultValue": "${{meilisearch.MEILI_MASTER_KEY}}"
                    },
                    "ALLOW_EMAIL_LOGIN": {
                      "isOptional": false,
                      "description": "Permit email and password sign-in",
                      "defaultValue": "true"
                    },
                    "ALLOW_REGISTRATION": {
                      "isOptional": false,
                      "description": "Open until the first admin exists",
                      "defaultValue": "true"
                    },
                    "ALLOW_SOCIAL_LOGIN": {
                      "isOptional": false,
                      "description": "No OAuth providers configured",
                      "defaultValue": "false"
                    },
                    "JWT_REFRESH_SECRET": {
                      "isOptional": false,
                      "description": "Signs refresh tokens, keep stable",
                      "defaultValue": "{{JWT_REFRESH_SECRET}}"
                    },
                    "MEILI_NO_ANALYTICS": {
                      "isOptional": false,
                      "description": "Disable Meilisearch telemetry",
                      "defaultValue": "true"
                    },
                    "MIN_PASSWORD_LENGTH": {
                      "isOptional": false,
                      "description": "Minimum account password length",
                      "defaultValue": "12"
                    },
                    "ALLOW_PASSWORD_RESET": {
                      "isOptional": false,
                      "description": "No mail transport configured",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "4382bc34-9e4d-45b1-babd-b9bd492bfeb6": {
                      "mountPath": "/app/client/public/images"
                    }
                  }
                },
                "4efbd155-8c73-4dbf-b5ec-8495755950bd": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/meilisearch.svg",
                  "name": "meilisearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "getmeili/meilisearch:v1.35.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the health check probes",
                      "defaultValue": "7700"
                    },
                    "MEILI_ENV": {
                      "isOptional": false,
                      "description": "Disable the bundled dev dashboard",
                      "defaultValue": "production"
                    },
                    "MEILI_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Master key for search API access",
                      "defaultValue": "{{MEILI_MASTER_KEY}}"
                    },
                    "MEILI_NO_ANALYTICS": {
                      "isOptional": false,
                      "description": "Disable Meilisearch telemetry",
                      "defaultValue": "true"
                    },
                    "MEILI_MAX_INDEXING_THREADS": {
                      "isOptional": false,
                      "description": "Caps thread pool, required on Railway",
                      "defaultValue": "2"
                    }
                  },
                  "volumeMounts": {
                    "4efbd155-8c73-4dbf-b5ec-8495755950bd": {
                      "mountPath": "/meili_data"
                    }
                  }
                },
                "7b844520-ef41-4e39-bea3-316765ecc754": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory, a subdirectory of the volume mount",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Standard PostgreSQL port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser name",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "libpq alias of the default database",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity window of the generated self-signed TLS certificate",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period for in-flight connections on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "7b844520-ef41-4e39-bea3-316765ecc754": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "82ccdc3b-1649-44ec-a05b-16d0d0cb2ac6": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "MongoDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:8.0"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "Standard MongoDB port",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "Convenience alias of the root username",
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Private connection string, no database path — append /<db>?authSource=admin",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the root password",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated root password",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Root user created on first boot, lives in the admin database",
                      "defaultValue": "mongo"
                    }
                  },
                  "volumeMounts": {
                    "82ccdc3b-1649-44ec-a05b-16d0d0cb2ac6": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "d991685b-dfc5-45d4-903c-ff0253470efb": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/librechat.svg",
                  "name": "rag-api",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/danny-avila/librechat-rag-api-dev:v0.8.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "8000"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "HF_HOME": {
                      "isOptional": false,
                      "description": "Model cache path on volume",
                      "defaultValue": "/app/hf-cache"
                    },
                    "RAG_HOST": {
                      "isOptional": false,
                      "description": "Bind address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "RAG_PORT": {
                      "isOptional": false,
                      "description": "FastAPI listening port",
                      "defaultValue": "8000"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Must match LibreChat token secret",
                      "defaultValue": "${{librechat.JWT_SECRET}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Vector store database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "VECTOR_DB_TYPE": {
                      "isOptional": false,
                      "description": "Use Postgres pgvector backend",
                      "defaultValue": "pgvector"
                    },
                    "COLLECTION_NAME": {
                      "isOptional": false,
                      "description": "Vector collection name",
                      "defaultValue": "librechat"
                    },
                    "EMBEDDINGS_MODEL": {
                      "isOptional": false,
                      "description": "Local sentence transformer model",
                      "defaultValue": "sentence-transformers/all-MiniLM-L6-v2"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "EMBEDDINGS_PROVIDER": {
                      "isOptional": false,
                      "description": "Local embeddings, no API key",
                      "defaultValue": "huggingface"
                    }
                  },
                  "volumeMounts": {
                    "d991685b-dfc5-45d4-903c-ff0253470efb": {
                      "mountPath": "/app/hf-cache"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "LibreChat",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T16:14:44.435Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T23:02:32.801Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a1869ea5123349cda382",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 286,
    "typical_build_seconds": 0,
    "typical_start_seconds": 35,
    "slowest_service": "LibreChat"
  }
}
