{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f009ef42-f5dd-4d43-90fd-83b7f6611fc5",
    "slug": "anythingllm-on-bifrost-self-hosted-doc-c",
    "name": "AnythingLLM on Bifrost: Self Hosted Doc Chat and RAG Agents",
    "description": "Deploy and Host AnythingLLM: Self Hosted Doc Chat and RAG Agents",
    "url": "https://railway.com/deploy/anythingllm-on-bifrost-self-hosted-doc-c",
    "upstream": {
      "image": "maximhq/bifrost:latest"
    }
  },
  "services": [
    {
      "name": "Bifrost",
      "source": {
        "image": "maximhq/bifrost:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "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
    },
    {
      "name": "AnythingLLM",
      "source": {
        "image": "mintplexlabs/anythingllm:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/server/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "APP_HOST",
      "service": "Bifrost",
      "description": "Provide a value for APP_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "APP_PORT",
      "service": "Bifrost",
      "description": "Provide a value for APP_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Bifrost",
      "description": "Provide a value for LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "LOG_STYLE",
      "service": "Bifrost",
      "description": "Provide a value for LOG_STYLE.",
      "secret": false,
      "strategy": "default",
      "default": "json"
    },
    {
      "key": "BIFROST_CONFIG",
      "service": "Bifrost",
      "description": "Provide a value for BIFROST_CONFIG.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Bifrost",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SIG_KEY",
      "service": "AnythingLLM",
      "description": "Provide a value for SIG_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SIG_SALT",
      "service": "AnythingLLM",
      "description": "Provide a value for SIG_SALT.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JWT_SECRET",
      "service": "AnythingLLM",
      "description": "Provide a value for JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SERVER_PORT",
      "service": "AnythingLLM",
      "description": "Provide a value for SERVER_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "STORAGE_DIR",
      "service": "AnythingLLM",
      "description": "Provide a value for STORAGE_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/server/storage"
    },
    {
      "key": "LLM_PROVIDER",
      "service": "AnythingLLM",
      "description": "Provide a value for LLM_PROVIDER.",
      "secret": false,
      "strategy": "default",
      "default": "generic-openai"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "AnythingLLM",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "EMBEDDING_ENGINE",
      "service": "AnythingLLM",
      "description": "Provide a value for EMBEDDING_ENGINE.",
      "secret": false,
      "strategy": "default",
      "default": "native"
    },
    {
      "key": "DISABLE_TELEMETRY",
      "service": "AnythingLLM",
      "description": "Provide a value for DISABLE_TELEMETRY.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GENERIC_OPEN_AI_API_KEY",
      "service": "AnythingLLM",
      "description": "Provide a value for GENERIC_OPEN_AI_API_KEY.",
      "secret": true,
      "strategy": "default",
      "default": "sk-bifrost"
    },
    {
      "key": "GENERIC_OPEN_AI_BASE_PATH",
      "service": "AnythingLLM",
      "description": "Provide a value for GENERIC_OPEN_AI_BASE_PATH.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GENERIC_OPEN_AI_MODEL_PREF",
      "service": "AnythingLLM",
      "description": "Provide a value for GENERIC_OPEN_AI_MODEL_PREF.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-4o-mini"
    },
    {
      "key": "GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT",
      "service": "AnythingLLM",
      "description": "Provide a value for GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT.",
      "secret": true,
      "strategy": "default",
      "default": "4096"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "anythingllm-on-bifrost-self-hosted-doc-c"
      }
    },
    "cli": "railway deploy --template anythingllm-on-bifrost-self-hosted-doc-c",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f009ef42-f5dd-4d43-90fd-83b7f6611fc5",
            "serializedConfig": {
              "services": {
                "07d8313c-003c-448d-a99e-87acd1550309": {
                  "icon": "https://framerusercontent.com/images/k49dViw06yckDjJt5uERdfTSjU.png",
                  "name": "Bifrost",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "maximhq/bifrost:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "APP_HOST": {
                      "defaultValue": "0.0.0.0"
                    },
                    "APP_PORT": {
                      "defaultValue": "8080"
                    },
                    "LOG_LEVEL": {
                      "defaultValue": "info"
                    },
                    "LOG_STYLE": {
                      "defaultValue": "json"
                    },
                    "BIFROST_CONFIG": {
                      "defaultValue": "{\"config_store\":{\"enabled\":true,\"type\":\"postgres\",\"config\":{\"host\":\"${{Postgres.RAILWAY_PRIVATE_DOMAIN}}\",\"port\":\"5432\",\"user\":\"${{Postgres.POSTGRES_USER}}\",\"password\":\"${{Postgres.POSTGRES_PASSWORD}}\",\"db_name\":\"${{Postgres.POSTGRES_DB}}\",\"ssl_mode\":\"disable\"}},\"logs_store\":{\"enabled\":true,\"type\":\"postgres\",\"config\":{\"host\":\"${{Postgres.RAILWAY_PRIVATE_DOMAIN}}\",\"port\":\"5432\",\"user\":\"${{Postgres.POSTGRES_USER}}\",\"password\":\"${{Postgres.POSTGRES_PASSWORD}}\",\"db_name\":\"${{Postgres.POSTGRES_DB}}\",\"ssl_mode\":\"disable\"}}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "07d8313c-003c-448d-a99e-87acd1550309": {
                      "mountPath": "/app/data"
                    }
                  }
                },
                "10ccbcb6-e0e0-41b2-bea5-db1db125f2ba": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "PGDATA": {
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "defaultValue": "app"
                    },
                    "POSTGRES_USER": {
                      "defaultValue": "app"
                    },
                    "POSTGRES_PASSWORD": {
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "10ccbcb6-e0e0-41b2-bea5-db1db125f2ba": {
                      "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."
                  }
                },
                "ace9b481-9b9b-46e1-a95f-3b9336afb8a5": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/anything-llm.svg",
                  "name": "AnythingLLM",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "mintplexlabs/anythingllm:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "SIG_KEY": {
                      "defaultValue": "{{SIG_KEY}}"
                    },
                    "SIG_SALT": {
                      "defaultValue": "{{SIG_SALT}}"
                    },
                    "JWT_SECRET": {
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "SERVER_PORT": {
                      "defaultValue": "3001"
                    },
                    "STORAGE_DIR": {
                      "defaultValue": "/app/server/storage"
                    },
                    "LLM_PROVIDER": {
                      "defaultValue": "generic-openai"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "EMBEDDING_ENGINE": {
                      "defaultValue": "native"
                    },
                    "DISABLE_TELEMETRY": {
                      "defaultValue": "true"
                    },
                    "GENERIC_OPEN_AI_API_KEY": {
                      "defaultValue": "sk-bifrost"
                    },
                    "GENERIC_OPEN_AI_BASE_PATH": {
                      "defaultValue": "http://${{Bifrost.RAILWAY_PRIVATE_DOMAIN}}:8080/openai/v1"
                    },
                    "GENERIC_OPEN_AI_MODEL_PREF": {
                      "defaultValue": "gpt-4o-mini"
                    },
                    "GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT": {
                      "defaultValue": "4096"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  },
                  "volumeMounts": {
                    "ace9b481-9b9b-46e1-a95f-3b9336afb8a5": {
                      "mountPath": "/app/server/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Bifrost",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T09:17:56.682Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7cb5e683763d4efc9326",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 79,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "AnythingLLM"
  }
}
