{
  "manifest_version": "1.0.0",
  "template": {
    "id": "01198631-0a2f-4a10-a4cc-23240a8d5fda",
    "slug": "rift-1",
    "name": "Rift",
    "description": "Rift Its a OSS AI Chat for teams",
    "url": "https://railway.com/deploy/rift-1",
    "upstream": {
      "repo_url": "https://github.com/Compound-inc/rift"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Rift",
      "source": {
        "repo": "https://github.com/Compound-inc/rift"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Zero",
      "source": {
        "image": "rocicorp/zero:1.3.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/zero-data",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "qdrant",
      "source": {
        "image": "qdrant/qdrant:dev"
      },
      "needs_volume": true,
      "volume_mount_path": "/qdrant/storage",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Provide a value for PGHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Provide a value for PGPORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Provide a value for PGUSER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Provide a value for PGDATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Provide a value for PGPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Provide a value for SSL_CERT_DAYS.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "REDIS_URL",
      "service": "Rift",
      "description": "Redis URL for Rate Limiting",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "Rift",
      "description": "S3 Bucket Region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QDRANT_URL",
      "service": "Rift",
      "description": "Qdrant URL for Vector Embedding",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "Rift",
      "description": "S3 Bucket Endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QDRANT_API_KEY",
      "service": "Rift",
      "description": "QDRANT Access API key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET_NAME",
      "service": "Rift",
      "description": "S3 Bucket Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ZERO_QUERY_URL",
      "service": "Rift",
      "description": "URL for Zero Query Transactions",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "Rift",
      "description": "Deployment URL used for Auth",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ZERO_MUTATE_URL",
      "service": "Rift",
      "description": "URL for Zero Client Mutate Transactions",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "Rift",
      "description": "S3 Bucket Access Key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ZERO_UPSTREAM_DB",
      "service": "Rift",
      "description": "URL for the main Postgres DB",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AI_GATEWAY_API_KEY",
      "service": "Rift",
      "description": "Enter your personal Vercel AI Gateway Key for AI usage",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "Rift",
      "description": "Secret used for cookie security",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "VITE_ZERO_CACHE_URL",
      "service": "Rift",
      "description": "Zero Service Public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "Rift",
      "description": "S3 Bucket Secret Key for accessing the data",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "VITE_BETTER_AUTH_URL",
      "service": "Rift",
      "description": "Deployment URL used for Auth",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "VITE_SELF_HOST_SOURCE",
      "service": "Rift",
      "description": "Used to know the self-hosting setup process",
      "secret": false,
      "strategy": "default",
      "default": "Railway"
    },
    {
      "key": "VITE_APP_INSTANCE_MODE",
      "service": "Rift",
      "description": "Change the behavior the app to work with self hosting enviroments",
      "secret": false,
      "strategy": "default",
      "default": "self_hosted"
    },
    {
      "key": "BYOK_ENCRYPTION_KEY_B64",
      "service": "Rift",
      "description": "Used to secure BYOK encryption",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SELF_HOSTED_SETUP_TOKEN",
      "service": "Rift",
      "description": "Create a password; you will require it on sign-up.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "UPLOAD_STORAGE_PROVIDER",
      "service": "Rift",
      "description": "Changes the bucket service used",
      "secret": false,
      "strategy": "default",
      "default": "s3_compatible"
    },
    {
      "key": "ZERO_QUERY_FORWARD_COOKIES",
      "service": "Rift",
      "description": "Allow Zero to foward the user cookies to the backend",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ZERO_MUTATE_FORWARD_COOKIES",
      "service": "Rift",
      "description": "Allow Zero to foward the user cookies to the backend",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "Zero",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "4848"
    },
    {
      "key": "ZERO_PORT",
      "service": "Zero",
      "description": "Provide a value for ZERO_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "4848"
    },
    {
      "key": "ZERO_QUERY_URL",
      "service": "Zero",
      "description": "Provide a value for ZERO_QUERY_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ZERO_MUTATE_URL",
      "service": "Zero",
      "description": "Provide a value for ZERO_MUTATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ZERO_UPSTREAM_DB",
      "service": "Zero",
      "description": "Provide a value for ZERO_UPSTREAM_DB.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ZERO_ADMIN_PASSWORD",
      "service": "Zero",
      "description": "Provide a value for ZERO_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ZERO_QUERY_FORWARD_COOKIES",
      "service": "Zero",
      "description": "Provide a value for ZERO_QUERY_FORWARD_COOKIES.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ZERO_MUTATE_FORWARD_COOKIES",
      "service": "Zero",
      "description": "Provide a value for ZERO_MUTATE_FORWARD_COOKIES.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Provide a value for REDIS_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "qdrant",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "6333"
    },
    {
      "key": "QDRANT_URL",
      "service": "qdrant",
      "description": "The private DNS name of the service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QDRANT__SERVICE__API_KEY\n",
      "service": "qdrant",
      "description": "Provide a value for QDRANT__SERVICE__API_KEY\n.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rift-1"
      }
    },
    "cli": "railway deploy --template rift-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "01198631-0a2f-4a10-a4cc-23240a8d5fda",
            "serializedConfig": {
              "buckets": {
                "9d72dc31-baee-4b6b-8de0-3614f4e25386": {
                  "name": "Bucket"
                }
              },
              "services": {
                "2a4bf3c3-a652-498d-8080-329864c3a6ca": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh postgres -c wal_level=logical",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "2a4bf3c3-a652-498d-8080-329864c3a6ca": {
                      "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."
                  }
                },
                "601b6071-9be9-432e-9977-e4423b3db1c7": {
                  "icon": "https://rift.mx/logo-dark.svg",
                  "name": "Rift",
                  "deploy": {
                    "startCommand": "bun run start",
                    "healthcheckPath": "/health",
                    "preDeployCommand": [
                      "bun run --cwd apps/start zero:migrate"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/Compound-inc/rift",
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis URL for Rate Limiting",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "S3_REGION": {
                      "description": "S3 Bucket Region",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "QDRANT_URL": {
                      "isOptional": false,
                      "description": "Qdrant URL for Vector Embedding",
                      "defaultValue": "http://${{qdrant.QDRANT_URL}}:${{qdrant.PORT}}"
                    },
                    "S3_ENDPOINT": {
                      "description": "S3 Bucket Endpoint",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "QDRANT_API_KEY": {
                      "isOptional": false,
                      "description": "QDRANT Access API key",
                      "defaultValue": "${{qdrant.QDRANT__SERVICE__API_KEY\n}}"
                    },
                    "S3_BUCKET_NAME": {
                      "description": "S3 Bucket Name",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "ZERO_QUERY_URL": {
                      "isOptional": false,
                      "description": "URL for Zero Query Transactions",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api/zero/query"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Deployment URL used for Auth",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ZERO_MUTATE_URL": {
                      "isOptional": false,
                      "description": "URL for Zero Client Mutate Transactions",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api/zero/mutate"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "description": "S3 Bucket Access Key",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "ZERO_UPSTREAM_DB": {
                      "isOptional": false,
                      "description": "URL for the main Postgres DB",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AI_GATEWAY_API_KEY": {
                      "isOptional": false,
                      "description": "Enter your personal Vercel AI Gateway Key for AI usage",
                      "defaultValue": "{{AI_GATEWAY_API_KEY}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Secret used for cookie security",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "VITE_ZERO_CACHE_URL": {
                      "isOptional": false,
                      "description": "Zero Service Public URL",
                      "defaultValue": "https://${{Zero.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "description": "S3 Bucket Secret Key for accessing the data",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}}}"
                    },
                    "VITE_BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Deployment URL used for Auth",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "VITE_SELF_HOST_SOURCE": {
                      "description": "Used to know the self-hosting setup process",
                      "defaultValue": "Railway"
                    },
                    "CF_MARKDOWN_WORKER_URL": {
                      "isOptional": true,
                      "description": "(Optional) Service to convert files to markdown",
                      "defaultValue": ""
                    },
                    "VITE_APP_INSTANCE_MODE": {
                      "isOptional": false,
                      "description": "Change the behavior the app to work with self hosting enviroments",
                      "defaultValue": "self_hosted"
                    },
                    "BYOK_ENCRYPTION_KEY_B64": {
                      "isOptional": false,
                      "description": "Used to secure BYOK encryption",
                      "defaultValue": "{{BYOK_ENCRYPTION_KEY_B64}}"
                    },
                    "SELF_HOSTED_SETUP_TOKEN": {
                      "isOptional": false,
                      "description": "Create a password; you will require it on sign-up.",
                      "defaultValue": "{{SELF_HOSTED_SETUP_TOKEN}}"
                    },
                    "UPLOAD_STORAGE_PROVIDER": {
                      "description": "Changes the bucket service used",
                      "defaultValue": "s3_compatible"
                    },
                    "CF_MARKDOWN_WORKER_TOKEN": {
                      "isOptional": true,
                      "description": "(Optional) Token to access Cloudflare ToMarkdown Worker",
                      "defaultValue": ""
                    },
                    "ZERO_QUERY_FORWARD_COOKIES": {
                      "isOptional": false,
                      "description": "Allow Zero to foward the user cookies to the backend",
                      "defaultValue": "true"
                    },
                    "ZERO_MUTATE_FORWARD_COOKIES": {
                      "isOptional": false,
                      "description": "Allow Zero to foward the user cookies to the backend",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "d6e95240-c765-4fcc-b8c1-0f88309c78e6": {
                  "icon": "https://pbs.twimg.com/profile_images/1868725523267878912/BlAYEcqM_400x400.jpg",
                  "name": "Zero",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "rocicorp/zero:1.3.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "4848"
                    },
                    "ZERO_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "4848"
                    },
                    "ZERO_QUERY_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{Rift.RAILWAY_PUBLIC_DOMAIN}}/api/zero/query"
                    },
                    "ZERO_MUTATE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{Rift.RAILWAY_PUBLIC_DOMAIN}}/api/zero/mutate"
                    },
                    "ZERO_UPSTREAM_DB": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ZERO_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{ZERO_ADMIN_PASSWORD}}"
                    },
                    "ZERO_QUERY_FORWARD_COOKIES": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "ZERO_MUTATE_FORWARD_COOKIES": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4848": {
                        "port": 4848
                      }
                    }
                  },
                  "volumeMounts": {
                    "d6e95240-c765-4fcc-b8c1-0f88309c78e6": {
                      "mountPath": "/zero-data"
                    }
                  }
                },
                "e4d59d82-90c2-45be-b234-f4d29e14f633": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "e4d59d82-90c2-45be-b234-f4d29e14f633": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "e6f42ad0-1c9b-4971-9d5c-4e2b060af795": {
                  "icon": "https://qdrant.tech/img/brand-resources-logos/qdrant-brandmark-red.svg",
                  "name": "qdrant",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "qdrant/qdrant:dev"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "6333"
                    },
                    "QDRANT_URL": {
                      "description": "The private DNS name of the service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "QDRANT__SERVICE__API_KEY\n": {
                      "isOptional": false,
                      "defaultValue": "{{QDRANT__SERVICE__API_KEY\n}}"
                    }
                  },
                  "volumeMounts": {
                    "e6f42ad0-1c9b-4971-9d5c-4e2b060af795": {
                      "mountPath": "/qdrant/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Rift",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T04:14:39.446Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-11T13:12:26.973Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_73703086c281482890db",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
