{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cd3cb1ab-c4ec-4b51-842a-90c02de3e5b7",
    "slug": "sftpgo-or-just-updated-sftp-server-files",
    "name": "SFTPGo | (Just Updated) SFTP Server, Files and Host Keys Survive Redeploys",
    "description": "SFTP server whose uploads, users and host keys survive every redeploy",
    "url": "https://railway.com/deploy/sftpgo-or-just-updated-sftp-server-files",
    "upstream": {
      "image": "ghcr.io/bon5co/sftpgo-railway@sha256:83a1a7c7b0f31e896d95ae84bf52c2b98f8bd3f3255b07519ef6dedf33913cb8"
    }
  },
  "services": [
    {
      "name": "sftpgo",
      "source": {
        "image": "ghcr.io/bon5co/sftpgo-railway@sha256:83a1a7c7b0f31e896d95ae84bf52c2b98f8bd3f3255b07519ef6dedf33913cb8"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/sftpgo",
      "tcp_ports": [
        2022
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "SFTPGO_DEFAULT_ADMIN_PASSWORD",
      "service": "sftpgo",
      "description": "Provide a value for SFTPGO_DEFAULT_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sftpgo-or-just-updated-sftp-server-files"
      }
    },
    "cli": "railway deploy --template sftpgo-or-just-updated-sftp-server-files",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cd3cb1ab-c4ec-4b51-842a-90c02de3e5b7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3aaaa91f-4234-4c52-b22f-0c2da5700ec4": {
                  "icon": null,
                  "name": "sftpgo",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/sftpgo-railway@sha256:83a1a7c7b0f31e896d95ae84bf52c2b98f8bd3f3255b07519ef6dedf33913cb8"
                  },
                  "variables": {
                    "SFTPGO_DEFAULT_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{SFTPGO_DEFAULT_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "2022": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "3aaaa91f-4234-4c52-b22f-0c2da5700ec4": {
                      "mountPath": "/var/lib/sftpgo"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T10:14:37.526Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T15:18:04.391Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_494f5fbadb64416bb3ac",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 51,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "sftpgo"
  }
}
