{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c982df00-25f1-4fba-880e-5d6680bd42dc",
    "slug": "manticore",
    "name": "Manticore Search",
    "description": "Open-source database for full-text and vector search",
    "url": "https://railway.com/deploy/manticore",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/manticore-search-railway"
    }
  },
  "services": [
    {
      "name": "dashboard",
      "source": {
        "repo": "https://github.com/gridalpha/manticore-search-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "manticore",
      "source": {
        "repo": "https://github.com/gridalpha/manticore-search-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/manticore",
      "tcp_ports": [
        9306
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "dashboard",
      "description": "Port Grafana serves on",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "MANTICORE_USER",
      "service": "dashboard",
      "description": "Manticore user for both",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MANTICORE_TARGETS",
      "service": "dashboard",
      "description": "Endpoints Prometheus scrapes",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MANTICORE_PASSWORD",
      "service": "dashboard",
      "description": "Manticore password for both",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MANTICORE_SQL_HOST",
      "service": "dashboard",
      "description": "MySQL host for the data source",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GF_SECURITY_ADMIN_USER",
      "service": "dashboard",
      "description": "Grafana administrator's name",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "dashboard",
      "description": "Dockerfile this service builds",
      "secret": false,
      "strategy": "default",
      "default": "dashboard/Dockerfile"
    },
    {
      "key": "GF_SECURITY_ADMIN_PASSWORD",
      "service": "dashboard",
      "description": "Grafana administrator's password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "manticore",
      "description": "Port the HTTP front door serves on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "AWS_REGION",
      "service": "manticore",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BACKUP_KEEP",
      "service": "manticore",
      "description": "Snapshots retained in the bucket",
      "secret": false,
      "strategy": "default",
      "default": "7"
    },
    {
      "key": "PRIVATE_SQL",
      "service": "manticore",
      "description": "Private MySQL protocol endpoint",
      "secret": false,
      "strategy": "default",
      "default": "manticore.railway.internal:9306"
    },
    {
      "key": "PRIVATE_HTTP",
      "service": "manticore",
      "description": "Private JSON API endpoint",
      "secret": false,
      "strategy": "default",
      "default": "manticore.railway.internal:9308"
    },
    {
      "key": "BACKUP_BUCKET",
      "service": "manticore",
      "description": "Bucket holding the snapshots",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BACKUP_PREFIX",
      "service": "manticore",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "manticore"
    },
    {
      "key": "MANTICORE_USER",
      "service": "manticore",
      "description": "First administrator's name",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "AWS_ENDPOINT_URL",
      "service": "manticore",
      "description": "Bucket S3 endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "manticore",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MANTICORE_PASSWORD",
      "service": "manticore",
      "description": "First administrator's password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "manticore",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BACKUP_INTERVAL_SECONDS",
      "service": "manticore",
      "description": "Seconds between snapshots",
      "secret": false,
      "strategy": "default",
      "default": "86400"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "manticore",
      "description": "Dockerfile this service builds",
      "secret": false,
      "strategy": "default",
      "default": "manticore/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "manticore"
      }
    },
    "cli": "railway deploy --template manticore",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c982df00-25f1-4fba-880e-5d6680bd42dc",
            "serializedConfig": {
              "buckets": {
                "b2887845-2680-423c-8a9d-79337c150e36": {
                  "name": "manticore-backups"
                }
              },
              "services": {
                "4c72a1e1-4679-4ab1-985f-c1c433e9b604": {
                  "icon": "https://cdn.simpleicons.org/grafana/F46800.svg",
                  "name": "dashboard",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/manticore-search-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Grafana serves on",
                      "defaultValue": "3000"
                    },
                    "MANTICORE_USER": {
                      "isOptional": false,
                      "description": "Manticore user for both",
                      "defaultValue": "${{manticore.MANTICORE_USER}}"
                    },
                    "MANTICORE_TARGETS": {
                      "isOptional": true,
                      "description": "Endpoints Prometheus scrapes",
                      "defaultValue": "${{manticore.PRIVATE_HTTP}}"
                    },
                    "MANTICORE_PASSWORD": {
                      "isOptional": false,
                      "description": "Manticore password for both",
                      "defaultValue": "${{manticore.MANTICORE_PASSWORD}}"
                    },
                    "MANTICORE_SQL_HOST": {
                      "isOptional": false,
                      "description": "MySQL host for the data source",
                      "defaultValue": "${{manticore.PRIVATE_SQL}}"
                    },
                    "GF_SECURITY_ADMIN_USER": {
                      "isOptional": true,
                      "description": "Grafana administrator's name",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile this service builds",
                      "defaultValue": "dashboard/Dockerfile"
                    },
                    "GF_SECURITY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Grafana administrator's password",
                      "defaultValue": "{{GF_SECURITY_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "4c72a1e1-4679-4ab1-985f-c1c433e9b604": {
                      "mountPath": "/data"
                    }
                  }
                },
                "8cbcd743-c93f-4cc6-9098-573d19f36153": {
                  "icon": "https://raw.githubusercontent.com/gridalpha/manticore-search-railway/main/assets/manticore-icon.png",
                  "name": "manticore",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/manticore-search-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the HTTP front door serves on",
                      "defaultValue": "8080"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{manticore-backups.REGION}}"
                    },
                    "BACKUP_KEEP": {
                      "isOptional": true,
                      "description": "Snapshots retained in the bucket",
                      "defaultValue": "7"
                    },
                    "PRIVATE_SQL": {
                      "isOptional": false,
                      "description": "Private MySQL protocol endpoint",
                      "defaultValue": "manticore.railway.internal:9306"
                    },
                    "PRIVATE_HTTP": {
                      "isOptional": false,
                      "description": "Private JSON API endpoint",
                      "defaultValue": "manticore.railway.internal:9308"
                    },
                    "BACKUP_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding the snapshots",
                      "defaultValue": "${{manticore-backups.BUCKET}}"
                    },
                    "BACKUP_PREFIX": {
                      "isOptional": true,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "manticore"
                    },
                    "MANTICORE_USER": {
                      "isOptional": true,
                      "description": "First administrator's name",
                      "defaultValue": "admin"
                    },
                    "AWS_ENDPOINT_URL": {
                      "isOptional": false,
                      "description": "Bucket S3 endpoint",
                      "defaultValue": "${{manticore-backups.ENDPOINT}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{manticore-backups.ACCESS_KEY_ID}}"
                    },
                    "MANTICORE_PASSWORD": {
                      "isOptional": false,
                      "description": "First administrator's password",
                      "defaultValue": "{{MANTICORE_PASSWORD}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{manticore-backups.SECRET_ACCESS_KEY}}"
                    },
                    "BACKUP_INTERVAL_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds between snapshots",
                      "defaultValue": "86400"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile this service builds",
                      "defaultValue": "manticore/Dockerfile"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "9306": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "8cbcd743-c93f-4cc6-9098-573d19f36153": {
                      "mountPath": "/var/lib/manticore"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "dashboard",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-09T22:14:39.753Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T20:02:07.055Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_9fe2a5dbc5f14f5d9475",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
