{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3fab3c4b-7c54-4f6b-89ba-39837139efff",
    "slug": "syncthing-file-sync",
    "name": "Syncthing",
    "description": "Deploy Syncthing on Railway — encrypted peer-to-peer file synchronisation",
    "url": "https://railway.com/deploy/syncthing-file-sync",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/syncthing-railway"
    }
  },
  "services": [
    {
      "name": "syncthing",
      "source": {
        "repo": "https://github.com/gridalpha/syncthing-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/syncthing",
      "tcp_ports": [
        22000
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "syncthing",
      "description": "Web interface listening port",
      "secret": false,
      "strategy": "default",
      "default": "8384"
    },
    {
      "key": "STGUIAPIKEY",
      "service": "syncthing",
      "description": "REST API key for automation",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "STNOUPGRADE",
      "service": "syncthing",
      "description": "Image tag controls the version",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "STNOPORTPROBING",
      "service": "syncthing",
      "description": "Keep the sync port at 22000",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "SYNCTHING_GUI_USER",
      "service": "syncthing",
      "description": "Web interface username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "SYNCTHING_GUI_PASSWORD",
      "service": "syncthing",
      "description": "Web interface password, hashed at boot",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "syncthing",
      "description": "Dockerfile path for the build",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "syncthing-file-sync"
      }
    },
    "cli": "railway deploy --template syncthing-file-sync",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3fab3c4b-7c54-4f6b-89ba-39837139efff",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "30dc16ac-cdd6-4a0a-9123-1fd8119e4c60": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/syncthing.svg",
                  "name": "syncthing",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/syncthing-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Web interface listening port",
                      "defaultValue": "8384"
                    },
                    "STGUIAPIKEY": {
                      "isOptional": false,
                      "description": "REST API key for automation",
                      "defaultValue": "{{STGUIAPIKEY}}"
                    },
                    "STNOUPGRADE": {
                      "isOptional": false,
                      "description": "Image tag controls the version",
                      "defaultValue": "1"
                    },
                    "STNOPORTPROBING": {
                      "isOptional": false,
                      "description": "Keep the sync port at 22000",
                      "defaultValue": "1"
                    },
                    "SYNCTHING_GUI_USER": {
                      "isOptional": false,
                      "description": "Web interface username",
                      "defaultValue": "admin"
                    },
                    "SYNCTHING_GUI_PASSWORD": {
                      "isOptional": false,
                      "description": "Web interface password, hashed at boot",
                      "defaultValue": "{{SYNCTHING_GUI_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile path for the build",
                      "defaultValue": "Dockerfile"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22000": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8384": {
                        "port": 8384
                      }
                    }
                  },
                  "volumeMounts": {
                    "30dc16ac-cdd6-4a0a-9123-1fd8119e4c60": {
                      "mountPath": "/var/syncthing"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T16:18:20.344Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6947437aed1e46798c39",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 72,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "syncthing"
  }
}
