{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2b2b0b14-e127-46b7-a987-63e25313d053",
    "slug": "anythingllm-chat",
    "name": "AnythingLLM",
    "description": "Chat with your own documents using the AI model you choose",
    "url": "https://railway.com/deploy/anythingllm-chat",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/anythingllm-railway"
    }
  },
  "services": [
    {
      "name": "qdrant",
      "source": {
        "image": "qdrant/qdrant:v1"
      },
      "needs_volume": true,
      "volume_mount_path": "/qdrant/storage",
      "http": false
    },
    {
      "name": "anythingllm",
      "source": {
        "repo": "https://github.com/gridalpha/anythingllm-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/storage",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "qdrant",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "6333"
    },
    {
      "key": "QDRANT__SERVICE__HOST",
      "service": "qdrant",
      "description": "Bind dual-stack for private networking",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "QDRANT__SERVICE__API_KEY",
      "service": "qdrant",
      "description": "API key required on every request",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "QDRANT__STORAGE__STORAGE_PATH",
      "service": "qdrant",
      "description": "Storage location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/qdrant/storage"
    },
    {
      "key": "PORT",
      "service": "anythingllm",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "SIG_KEY",
      "service": "anythingllm",
      "description": "At-rest encryption key, never change",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SIG_SALT",
      "service": "anythingllm",
      "description": "At-rest encryption salt, never change",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "VECTOR_DB",
      "service": "anythingllm",
      "description": "Use the Qdrant service for embeddings",
      "secret": false,
      "strategy": "default",
      "default": "qdrant"
    },
    {
      "key": "AUTH_TOKEN",
      "service": "anythingllm",
      "description": "Instance password; without it the app is open",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JWT_SECRET",
      "service": "anythingllm",
      "description": "Session signing key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SERVER_PORT",
      "service": "anythingllm",
      "description": "Port the web server binds",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "STORAGE_DIR",
      "service": "anythingllm",
      "description": "Data directory, matches the volume",
      "secret": false,
      "strategy": "default",
      "default": "/storage"
    },
    {
      "key": "DATABASE_URL",
      "service": "anythingllm",
      "description": "Postgres connection, pool capped",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QDRANT_API_KEY",
      "service": "anythingllm",
      "description": "Qdrant authentication",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QDRANT_ENDPOINT",
      "service": "anythingllm",
      "description": "Private Qdrant address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "EMBEDDING_ENGINE",
      "service": "anythingllm",
      "description": "In-process embedder, no API key needed",
      "secret": false,
      "strategy": "default",
      "default": "native"
    },
    {
      "key": "DISABLE_TELEMETRY",
      "service": "anythingllm",
      "description": "Opt out of usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DISABLE_SWAGGER_DOCS",
      "service": "anythingllm",
      "description": "Close the public API docs endpoint",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "EMBED_REQUIRE_ALLOWLIST",
      "service": "anythingllm",
      "description": "Embed widgets need a domain allowlist",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ANYTHINGLLM_CHROMIUM_ARGS",
      "service": "anythingllm",
      "description": "Collector browser flags",
      "secret": false,
      "strategy": "default",
      "default": "--no-sandbox,--disable-setuid-sandbox"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "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": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "anythingllm-chat"
      }
    },
    "cli": "railway deploy --template anythingllm-chat",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2b2b0b14-e127-46b7-a987-63e25313d053",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "11395aff-f9f7-4333-b83b-0c6cd8f11784": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/qdrant.svg",
                  "name": "qdrant",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "qdrant/qdrant:v1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "6333"
                    },
                    "QDRANT__SERVICE__HOST": {
                      "isOptional": false,
                      "description": "Bind dual-stack for private networking",
                      "defaultValue": "::"
                    },
                    "QDRANT__SERVICE__API_KEY": {
                      "isOptional": false,
                      "description": "API key required on every request",
                      "defaultValue": "{{QDRANT__SERVICE__API_KEY}}"
                    },
                    "QDRANT__STORAGE__STORAGE_PATH": {
                      "isOptional": false,
                      "description": "Storage location on the volume",
                      "defaultValue": "/qdrant/storage"
                    }
                  },
                  "volumeMounts": {
                    "11395aff-f9f7-4333-b83b-0c6cd8f11784": {
                      "mountPath": "/qdrant/storage"
                    }
                  }
                },
                "318cc930-b8ce-48c9-9857-d0ed2d53d27c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/anything-llm-light.svg",
                  "name": "anythingllm",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/anythingllm-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "3001"
                    },
                    "SIG_KEY": {
                      "isOptional": false,
                      "description": "At-rest encryption key, never change",
                      "defaultValue": "{{SIG_KEY}}"
                    },
                    "SIG_SALT": {
                      "isOptional": false,
                      "description": "At-rest encryption salt, never change",
                      "defaultValue": "{{SIG_SALT}}"
                    },
                    "VECTOR_DB": {
                      "isOptional": false,
                      "description": "Use the Qdrant service for embeddings",
                      "defaultValue": "qdrant"
                    },
                    "AUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Instance password; without it the app is open",
                      "defaultValue": "{{AUTH_TOKEN}}"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Session signing key",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "SERVER_PORT": {
                      "isOptional": false,
                      "description": "Port the web server binds",
                      "defaultValue": "3001"
                    },
                    "STORAGE_DIR": {
                      "isOptional": false,
                      "description": "Data directory, matches the volume",
                      "defaultValue": "/storage"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection, pool capped",
                      "defaultValue": "${{Postgres.DATABASE_URL}}?connection_limit=10&pool_timeout=20"
                    },
                    "QDRANT_API_KEY": {
                      "isOptional": false,
                      "description": "Qdrant authentication",
                      "defaultValue": "${{qdrant.QDRANT__SERVICE__API_KEY}}"
                    },
                    "QDRANT_ENDPOINT": {
                      "isOptional": false,
                      "description": "Private Qdrant address",
                      "defaultValue": "http://${{qdrant.RAILWAY_PRIVATE_DOMAIN}}:6333"
                    },
                    "EMBEDDING_ENGINE": {
                      "isOptional": false,
                      "description": "In-process embedder, no API key needed",
                      "defaultValue": "native"
                    },
                    "DISABLE_TELEMETRY": {
                      "isOptional": false,
                      "description": "Opt out of usage reporting",
                      "defaultValue": "true"
                    },
                    "DISABLE_SWAGGER_DOCS": {
                      "isOptional": false,
                      "description": "Close the public API docs endpoint",
                      "defaultValue": "true"
                    },
                    "EMBED_REQUIRE_ALLOWLIST": {
                      "isOptional": false,
                      "description": "Embed widgets need a domain allowlist",
                      "defaultValue": "true"
                    },
                    "ANYTHINGLLM_CHROMIUM_ARGS": {
                      "isOptional": false,
                      "description": "Collector browser flags",
                      "defaultValue": "--no-sandbox,--disable-setuid-sandbox"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  },
                  "volumeMounts": {
                    "318cc930-b8ce-48c9-9857-d0ed2d53d27c": {
                      "mountPath": "/storage"
                    }
                  }
                },
                "fa9b52b0-4fc4-4da2-907f-d30085957ccc": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/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": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "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": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "fa9b52b0-4fc4-4da2-907f-d30085957ccc": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T15:45:29.857Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ede8f47fc5d54cf5b047",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 142,
    "typical_build_seconds": 83,
    "typical_start_seconds": 20,
    "slowest_service": "anythingllm"
  }
}
