{
  "manifest_version": "1.0.0",
  "template": {
    "id": "401c6377-0726-4af1-a3f6-01f0351d6b13",
    "slug": "victoriametrics",
    "name": "VictoriaMetrics",
    "description": "Persistent, secure time-series database with built-in VMUI.",
    "url": "https://railway.com/deploy/victoriametrics",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-victoriametrics"
    }
  },
  "services": [
    {
      "name": "VictoriaMetrics",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-victoriametrics"
      },
      "needs_volume": true,
      "volume_mount_path": "/victoria-metrics-data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "VictoriaMetrics",
      "description": "HTTP port used by VictoriaMetrics and the Railway public domain.",
      "secret": false,
      "strategy": "default",
      "default": "8428"
    },
    {
      "key": "VM_PASSWORD",
      "service": "VictoriaMetrics",
      "description": "Generated Basic Authentication password for VMUI and HTTP APIs.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "VM_USERNAME",
      "service": "VictoriaMetrics",
      "description": "Basic Authentication username for protected HTTP endpoints.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "VM_RETENTION_PERIOD",
      "service": "VictoriaMetrics",
      "description": "Duration that stored metrics are retained, such as 30d, 6M, or 1y.",
      "secret": false,
      "strategy": "default",
      "default": "1y"
    },
    {
      "key": "VM_SELF_SCRAPE_INTERVAL",
      "service": "VictoriaMetrics",
      "description": "Interval for scraping VictoriaMetrics' own operational metrics.",
      "secret": false,
      "strategy": "default",
      "default": "10s"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "victoriametrics"
      }
    },
    "cli": "railway deploy --template victoriametrics",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "401c6377-0726-4af1-a3f6-01f0351d6b13",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4a86255b-725a-4433-971f-bfad0f41c7cd": {
                  "icon": "https://raw.githubusercontent.com/homarr-labs/dashboard-icons/8bde504767d6114a366bec8886b86a96b641b4cf/svg/victoriametrics-light.svg",
                  "name": "VictoriaMetrics",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-victoriametrics",
                    "commitSha": "463d2ba94899238264aacfff7b388b674bd785ca",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port used by VictoriaMetrics and the Railway public domain.",
                      "defaultValue": "8428"
                    },
                    "VM_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated Basic Authentication password for VMUI and HTTP APIs.",
                      "defaultValue": "{{VM_PASSWORD}}"
                    },
                    "VM_USERNAME": {
                      "isOptional": false,
                      "description": "Basic Authentication username for protected HTTP endpoints.",
                      "defaultValue": "admin"
                    },
                    "VM_RETENTION_PERIOD": {
                      "isOptional": false,
                      "description": "Duration that stored metrics are retained, such as 30d, 6M, or 1y.",
                      "defaultValue": "1y"
                    },
                    "VM_SELF_SCRAPE_INTERVAL": {
                      "isOptional": false,
                      "description": "Interval for scraping VictoriaMetrics' own operational metrics.",
                      "defaultValue": "10s"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8428": {
                        "port": 8428
                      }
                    }
                  },
                  "volumeMounts": {
                    "4a86255b-725a-4433-971f-bfad0f41c7cd": {
                      "mountPath": "/victoria-metrics-data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "VictoriaMetrics",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T23:35:36.605Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c043f79eee93476b8790",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 48,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "VictoriaMetrics"
  }
}
