{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5dcea49f-6f44-4eb7-b57c-7e5c5148cff0",
    "slug": "netbird",
    "name": "NetBird",
    "description": "Run a NetBird agent on Railway",
    "url": "https://railway.com/deploy/netbird",
    "upstream": {
      "repo_url": "https://github.com/jayhale/railway-netbird"
    }
  },
  "services": [
    {
      "name": "NetBird",
      "source": {
        "repo": "https://github.com/jayhale/railway-netbird"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/netbird",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "VERSION",
      "service": "NetBird",
      "description": "Pin to a specific NetBird Docker image",
      "secret": false,
      "strategy": "default",
      "default": "rootless-latest"
    },
    {
      "key": "NB_CONFIG",
      "service": "NetBird",
      "description": "The path to the NetBird configuration (computed on start-up), aligned to the attached volume to persist config across restarts / deploys.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NB_HOSTNAME",
      "service": "NetBird",
      "description": "The agent's hostname in your NetBird network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NB_SETUP_KEY",
      "service": "NetBird",
      "description": "The agent setup key from the NetBird management server",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NB_STATE_DIR",
      "service": "NetBird",
      "description": "The path to the NetBird state directory, aligned to the attached volume to persist state across restarts / deploys.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "netbird"
      }
    },
    "cli": "railway deploy --template netbird",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5dcea49f-6f44-4eb7-b57c-7e5c5148cff0",
            "serializedConfig": {
              "services": {
                "fb6955f7-648a-4e0d-b9d1-5d4f5d6c876a": {
                  "icon": "https://raw.githubusercontent.com/jayhale/railway-netbird/main/assets/netbird.png",
                  "name": "NetBird",
                  "source": {
                    "repo": "jayhale/railway-netbird"
                  },
                  "variables": {
                    "VERSION": {
                      "isOptional": true,
                      "description": "Pin to a specific NetBird Docker image",
                      "defaultValue": "rootless-latest"
                    },
                    "NB_CONFIG": {
                      "isOptional": true,
                      "description": "The path to the NetBird configuration (computed on start-up), aligned to the attached volume to persist config across restarts / deploys.",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}/config.json"
                    },
                    "NB_HOSTNAME": {
                      "isOptional": true,
                      "description": "The agent's hostname in your NetBird network",
                      "defaultValue": "${{RAILWAY_SERVICE_NAME}}-${{RAILWAY_ENVIRONMENT_NAME}}"
                    },
                    "NB_SETUP_KEY": {
                      "isOptional": false,
                      "description": "The agent setup key from the NetBird management server",
                      "defaultValue": "{{NB_SETUP_KEY}}"
                    },
                    "NB_STATE_DIR": {
                      "isOptional": true,
                      "description": "The path to the NetBird state directory, aligned to the attached volume to persist state across restarts / deploys.",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}"
                    }
                  },
                  "volumeMounts": {
                    "fb6955f7-648a-4e0d-b9d1-5d4f5d6c876a": {
                      "mountPath": "/var/lib/netbird"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-30T04:14:48.142Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-30T02:54:11.346Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_08edeaf409b444049100",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 10,
    "typical_start_seconds": 0,
    "slowest_service": "NetBird"
  }
}
