{
  "manifest_version": "1.0.0",
  "template": {
    "id": "900951b6-001a-4fba-be9c-adcf7de7b3fc",
    "slug": "valhalla",
    "name": "Valhalla",
    "description": "Self-hosted OSM routing: routes, matrices, isochrones, map matching",
    "url": "https://railway.com/deploy/valhalla",
    "upstream": {
      "image": "ghcr.io/kolebjak/railway-valhalla:latest"
    }
  },
  "services": [
    {
      "name": "valhalla",
      "source": {
        "image": "ghcr.io/kolebjak/railway-valhalla:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/custom_files",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "tile_urls",
      "service": "valhalla",
      "description": "One or more .osm.pbf URLs, space separated. Pick your region at https://download.openstreetmap.fr/extracts/ - larger regions take longer to build on first deploy. Geofabrik URLs do not work: Railway cannot reach that host.",
      "secret": false,
      "strategy": "default",
      "default": "https://download.openstreetmap.fr/extracts/europe/monaco-latest.osm.pbf"
    },
    {
      "key": "server_threads",
      "service": "valhalla",
      "description": "Worker threads. Memory scales with this - raise in small steps and watch the memory graph.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "VALHALLA_MAX_LOCATIONS",
      "service": "valhalla",
      "description": "Max locations per matrix request, applied to every costing. Stock Valhalla caps this at 50, and at 20 for truck.",
      "secret": false,
      "strategy": "default",
      "default": "500"
    },
    {
      "key": "VALHALLA_MAX_MATRIX_PAIRS",
      "service": "valhalla",
      "description": "Max source x target pairs per matrix request. Keep it at VALHALLA_MAX_LOCATIONS squared.",
      "secret": false,
      "strategy": "default",
      "default": "250000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "valhalla"
      }
    },
    "cli": "railway deploy --template valhalla",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "900951b6-001a-4fba-be9c-adcf7de7b3fc",
            "serializedConfig": {
              "services": {
                "fba9f433-2af3-41a9-8abb-5459629fb6cc": {
                  "name": "valhalla",
                  "source": {
                    "image": "ghcr.io/kolebjak/railway-valhalla:latest"
                  },
                  "variables": {
                    "tile_urls": {
                      "description": "One or more .osm.pbf URLs, space separated. Pick your region at https://download.openstreetmap.fr/extracts/ - larger regions take longer to build on first deploy. Geofabrik URLs do not work: Railway cannot reach that host.",
                      "defaultValue": "https://download.openstreetmap.fr/extracts/europe/monaco-latest.osm.pbf"
                    },
                    "server_threads": {
                      "isOptional": true,
                      "description": "Worker threads. Memory scales with this - raise in small steps and watch the memory graph.",
                      "defaultValue": "1"
                    },
                    "VALHALLA_MAX_LOCATIONS": {
                      "isOptional": true,
                      "description": "Max locations per matrix request, applied to every costing. Stock Valhalla caps this at 50, and at 20 for truck.",
                      "defaultValue": "500"
                    },
                    "VALHALLA_MAX_MATRIX_PAIRS": {
                      "isOptional": true,
                      "description": "Max source x target pairs per matrix request. Keep it at VALHALLA_MAX_LOCATIONS squared.",
                      "defaultValue": "250000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8002": {
                        "port": 8002
                      }
                    }
                  },
                  "volumeMounts": {
                    "fba9f433-2af3-41a9-8abb-5459629fb6cc": {
                      "mountPath": "/custom_files"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-28T10:14:48.458Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-28T09:14:49.055Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e21bbdfb3ae74bbabfc5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 70,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "valhalla"
  }
}
