{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a19aabd3-b4cf-47d8-8fb6-e0bc60978463",
    "slug": "quickwit-search",
    "name": "Quickwit search",
    "description": "Fast log and trace search with authenticated access and durable storage.",
    "url": "https://railway.com/deploy/quickwit-search",
    "upstream": {
      "image": "caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d"
    }
  },
  "services": [
    {
      "name": "Quickwit Gateway",
      "source": {
        "image": "caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Quickwit",
      "source": {
        "image": "quickwit/quickwit:0.9.0@sha256:1e6169bf4e98a489fca397105f1698c1d80a0f9779f3cf652973bac8a0c3b2bd"
      },
      "needs_volume": true,
      "volume_mount_path": "/quickwit/qwdata",
      "http": false
    },
    {
      "name": "Quickwit PostgreSQL",
      "source": {
        "image": "postgres:17-alpine@sha256:742f40ea20b9ff2ff31db5458d127452988a2164df9e17441e191f3b72252193"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Quickwit Gateway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "QUICKWIT_PASSWORD",
      "service": "Quickwit Gateway",
      "description": "Generated password required by the public Basic Auth gateway.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "QUICKWIT_UPSTREAM",
      "service": "Quickwit Gateway",
      "description": "Private Quickwit REST and UI endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUICKWIT_USERNAME",
      "service": "Quickwit Gateway",
      "description": "Username required by the public Basic Auth gateway.",
      "secret": false,
      "strategy": "default",
      "default": "quickwit"
    },
    {
      "key": "PORT",
      "service": "Quickwit",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "7280"
    },
    {
      "key": "AWS_REGION",
      "service": "Quickwit",
      "description": "Provide a value for AWS_REGION.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QW_NODE_ID",
      "service": "Quickwit",
      "description": "Provide a value for QW_NODE_ID.",
      "secret": false,
      "strategy": "default",
      "default": "quickwit-1"
    },
    {
      "key": "QW_DATA_DIR",
      "service": "Quickwit",
      "description": "Provide a value for QW_DATA_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/quickwit/qwdata"
    },
    {
      "key": "QW_CLUSTER_ID",
      "service": "Quickwit",
      "description": "Provide a value for QW_CLUSTER_ID.",
      "secret": false,
      "strategy": "default",
      "default": "quickwit-railway"
    },
    {
      "key": "QW_S3_ENDPOINT",
      "service": "Quickwit",
      "description": "S3-compatible Railway Bucket endpoint.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QW_METASTORE_URI",
      "service": "Quickwit",
      "description": "Private PostgreSQL connection used for index and source metadata.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "Quickwit",
      "description": "Railway Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QW_LISTEN_ADDRESS",
      "service": "Quickwit",
      "description": "Provide a value for QW_LISTEN_ADDRESS.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "QW_REST_LISTEN_PORT",
      "service": "Quickwit",
      "description": "Provide a value for QW_REST_LISTEN_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "7280"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "Quickwit",
      "description": "Railway Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QW_ENABLE_OTLP_ENDPOINT",
      "service": "Quickwit",
      "description": "Provide a value for QW_ENABLE_OTLP_ENDPOINT.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "QW_DEFAULT_INDEX_ROOT_URI",
      "service": "Quickwit",
      "description": "Railway Bucket prefix used for committed index splits.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QW_ENABLE_JAEGER_ENDPOINT",
      "service": "Quickwit",
      "description": "Provide a value for QW_ENABLE_JAEGER_ENDPOINT.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "QW_S3_FORCE_PATH_STYLE_ACCESS",
      "service": "Quickwit",
      "description": "Provide a value for QW_S3_FORCE_PATH_STYLE_ACCESS.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATA",
      "service": "Quickwit PostgreSQL",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Quickwit PostgreSQL",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "quickwit"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Quickwit PostgreSQL",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "quickwit"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Quickwit PostgreSQL",
      "description": "Generated password for the private Quickwit metadata database.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "quickwit-search"
      }
    },
    "cli": "railway deploy --template quickwit-search",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a19aabd3-b4cf-47d8-8fb6-e0bc60978463",
            "serializedConfig": {
              "buckets": {
                "2f3db953-90ce-4a76-b2ec-0e383809ada7": {
                  "name": "Quickwit Indexes"
                }
              },
              "services": {
                "c5eae1b8-ea32-41a9-bebc-a544b31d905f": {
                  "icon": null,
                  "name": "Quickwit Gateway",
                  "deploy": {
                    "startCommand": "/bin/sh -ec 'password_hash=\"$(caddy hash-password --plaintext \"$QUICKWIT_PASSWORD\")\"; printf '\"'\"':8080 {\\n handle /healthz {\\n  respond \"ok\" 200\\n }\\n handle {\\n  basic_auth {\\n   %s %s\\n  }\\n  reverse_proxy %s\\n }\\n}\\n'\"'\"' \"$QUICKWIT_USERNAME\" \"$password_hash\" \"$QUICKWIT_UPSTREAM\" >/tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 180,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "QUICKWIT_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password required by the public Basic Auth gateway.",
                      "defaultValue": "{{QUICKWIT_PASSWORD}}"
                    },
                    "QUICKWIT_UPSTREAM": {
                      "isOptional": false,
                      "description": "Private Quickwit REST and UI endpoint.",
                      "defaultValue": "http://${{Quickwit.RAILWAY_PRIVATE_DOMAIN}}:7280"
                    },
                    "QUICKWIT_USERNAME": {
                      "isOptional": false,
                      "description": "Username required by the public Basic Auth gateway.",
                      "defaultValue": "quickwit"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  }
                },
                "e96f1f8b-3880-446b-80b3-53232428196a": {
                  "icon": null,
                  "name": "Quickwit",
                  "deploy": {
                    "startCommand": "/usr/bin/bash -ec \"sed -i 's/^#   split_store_max_num_bytes: 100G/  split_store_max_num_bytes: 1G/; s/^# ingest_api:/ingest_api:/; s/^#   max_queue_memory_usage: 2GiB/  max_queue_memory_usage: 512MiB/; s/^#   max_queue_disk_usage: 4GiB/  max_queue_disk_usage: 2GiB/' /quickwit/config/quickwit.yaml; exec quickwit run\"",
                    "healthcheckPath": "/health/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 180,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "quickwit/quickwit:0.9.0@sha256:1e6169bf4e98a489fca397105f1698c1d80a0f9779f3cf652973bac8a0c3b2bd"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "7280"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{Quickwit Indexes.REGION}}"
                    },
                    "QW_NODE_ID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "quickwit-1"
                    },
                    "QW_DATA_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/quickwit/qwdata"
                    },
                    "QW_CLUSTER_ID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "quickwit-railway"
                    },
                    "QW_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible Railway Bucket endpoint.",
                      "defaultValue": "${{Quickwit Indexes.ENDPOINT}}"
                    },
                    "QW_METASTORE_URI": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection used for index and source metadata.",
                      "defaultValue": "postgresql://${{Quickwit PostgreSQL.POSTGRES_USER}}:${{Quickwit PostgreSQL.POSTGRES_PASSWORD}}@${{Quickwit PostgreSQL.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Quickwit PostgreSQL.POSTGRES_DB}}?sslmode=disable"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Railway Bucket access key.",
                      "defaultValue": "${{Quickwit Indexes.ACCESS_KEY_ID}}"
                    },
                    "QW_LISTEN_ADDRESS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0.0.0.0"
                    },
                    "QW_REST_LISTEN_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "7280"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Railway Bucket secret key.",
                      "defaultValue": "${{Quickwit Indexes.SECRET_ACCESS_KEY}}"
                    },
                    "QW_ENABLE_OTLP_ENDPOINT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "QW_DEFAULT_INDEX_ROOT_URI": {
                      "isOptional": false,
                      "description": "Railway Bucket prefix used for committed index splits.",
                      "defaultValue": "s3://${{Quickwit Indexes.BUCKET}}/indexes"
                    },
                    "QW_ENABLE_JAEGER_ENDPOINT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "QW_S3_FORCE_PATH_STYLE_ACCESS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    }
                  },
                  "volumeMounts": {
                    "e96f1f8b-3880-446b-80b3-53232428196a": {
                      "sizeMB": 5000,
                      "mountPath": "/quickwit/qwdata"
                    }
                  }
                },
                "eb87fc0c-83dc-4e1e-bd43-669a702c355c": {
                  "icon": null,
                  "name": "Quickwit PostgreSQL",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": null,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17-alpine@sha256:742f40ea20b9ff2ff31db5458d127452988a2164df9e17441e191f3b72252193"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "quickwit"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "quickwit"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the private Quickwit metadata database.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "eb87fc0c-83dc-4e1e-bd43-669a702c355c": {
                      "sizeMB": 5000,
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Quickwit Gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T19:09:08.060Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ef67ae2bb74d4d48a28f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 60,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "Quickwit Gateway"
  }
}
