{
  "manifest_version": "1.0.0",
  "template": {
    "id": "20b17cb9-da55-42dd-9cfd-f7d433bd9edb",
    "slug": "syncthing-2",
    "name": "Syncthing",
    "description": "Syncthing — decentralized peer-to-peer file sync between your devices",
    "url": "https://railway.com/deploy/syncthing-2",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-syncthing"
    }
  },
  "services": [
    {
      "name": "syncthing",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-syncthing"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/syncthing",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGID",
      "service": "syncthing",
      "description": "Group ID for file ownership (default: 1000). Ignored on Railway (non-root container).",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PUID",
      "service": "syncthing",
      "description": "User ID for file ownership (default: 1000). Ignored on Railway (non-root container).",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "STHOMEDIR",
      "service": "syncthing",
      "description": "Syncthing home directory for config, keys, and database. Must match the persistent volume mount path (/var/syncthing) so config and the Sync folder survive redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "/var/syncthing"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "syncthing-2"
      }
    },
    "cli": "railway deploy --template syncthing-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "20b17cb9-da55-42dd-9cfd-f7d433bd9edb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6ef02ffc-7ea9-465a-badc-eceaaf3750f1": {
                  "icon": null,
                  "name": "syncthing",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-syncthing",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PGID": {
                      "description": "Group ID for file ownership (default: 1000). Ignored on Railway (non-root container).",
                      "defaultValue": "1000"
                    },
                    "PUID": {
                      "description": "User ID for file ownership (default: 1000). Ignored on Railway (non-root container).",
                      "defaultValue": "1000"
                    },
                    "STHOMEDIR": {
                      "description": "Syncthing home directory for config, keys, and database. Must match the persistent volume mount path (/var/syncthing) so config and the Sync folder survive redeploys.",
                      "defaultValue": "/var/syncthing"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "6ef02ffc-7ea9-465a-badc-eceaaf3750f1": {
                      "mountPath": "/var/syncthing"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T08:37:06.144Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a3f69da1a0774075b232",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 91,
    "typical_build_seconds": 11,
    "typical_start_seconds": 10,
    "slowest_service": "syncthing"
  }
}
