{
  "manifest_version": "1.0.0",
  "template": {
    "id": "42b69593-a012-4d7f-910b-9b8729818be2",
    "slug": "copyparty-2",
    "name": "copyparty",
    "description": "copyparty 1.20: file server with uploads, WebDAV, search and media.",
    "url": "https://railway.com/deploy/copyparty-2",
    "upstream": {
      "image": "copyparty/ac:1.20.24"
    }
  },
  "services": [
    {
      "name": "copyparty",
      "source": {
        "image": "copyparty/ac:1.20.24"
      },
      "needs_volume": true,
      "volume_mount_path": "/w",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "copyparty",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3923"
    },
    {
      "key": "COPYPARTY_NAME",
      "service": "copyparty",
      "description": "Provide a value for COPYPARTY_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "copyparty"
    },
    {
      "key": "COPYPARTY_ADMIN_USER",
      "service": "copyparty",
      "description": "Provide a value for COPYPARTY_ADMIN_USER.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "COPYPARTY_ADMIN_PASSWORD",
      "service": "copyparty",
      "description": "Provide a value for COPYPARTY_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "copyparty",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "copyparty-2"
      }
    },
    "cli": "railway deploy --template copyparty-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "42b69593-a012-4d7f-910b-9b8729818be2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "cb103ea2-696e-4c5a-bab2-91d766a43f28": {
                  "icon": "https://raw.githubusercontent.com/9001/copyparty/v1.20.24/docs/logo-sq.svg",
                  "name": "copyparty",
                  "deploy": {
                    "startCommand": "sh -c 'mkdir -p /cfg /w && printf \"[global]\\n  i: ::\\n  p: %s\\n  no-crt\\n  rproxy: 1\\n  xff-src: lan\\n  e2dsa\\n  e2ts\\n  name: %s\\n\\n[accounts]\\n  %s: %s\\n\\n[/]\\n  /w\\n  accs:\\n    A: %s\\n\" \"$PORT\" \"$COPYPARTY_NAME\" \"$COPYPARTY_ADMIN_USER\" \"$COPYPARTY_ADMIN_PASSWORD\" \"$COPYPARTY_ADMIN_USER\" > /cfg/railway.conf && exec /usr/bin/python3 -m copyparty -c /cfg/railway.conf'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "copyparty/ac:1.20.24"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "3923"
                    },
                    "COPYPARTY_NAME": {
                      "isOptional": false,
                      "defaultValue": "copyparty"
                    },
                    "COPYPARTY_ADMIN_USER": {
                      "isOptional": false,
                      "defaultValue": "admin"
                    },
                    "COPYPARTY_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{COPYPARTY_ADMIN_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3923": {
                        "port": 3923
                      }
                    }
                  },
                  "volumeMounts": {
                    "cb103ea2-696e-4c5a-bab2-91d766a43f28": {
                      "mountPath": "/w"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "copyparty",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-24T22:14:48.880Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-24T19:43:52.287Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_543d8015a110469880de",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 66,
    "typical_build_seconds": 0,
    "typical_start_seconds": 11,
    "slowest_service": "copyparty"
  }
}
