{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7bba6390-7d16-4b41-bd47-6b6ca4d16ade",
    "slug": "filestash",
    "name": "Filestash | Open Source Dropbox UI",
    "description": "Self-Host Filestash. Web file manager for S3, FTP, SFTP, NFS& more.",
    "url": "https://railway.com/deploy/filestash",
    "upstream": {
      "image": "machines/filestash:latest"
    }
  },
  "services": [
    {
      "name": "Filestash",
      "source": {
        "image": "machines/filestash:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data/state",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Filestash",
      "description": "Public-facing port (Filestash hardcodes 8334)",
      "secret": false,
      "strategy": "default",
      "default": "8334"
    },
    {
      "key": "CANARY",
      "service": "Filestash",
      "description": "Enable newer/beta Filestash features",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Filestash",
      "description": "Log verbosity (DEBUG, INFO, WARNING, ERROR)",
      "secret": false,
      "strategy": "default",
      "default": "INFO"
    },
    {
      "key": "APPLICATION_URL",
      "service": "Filestash",
      "description": "Public URL for share links and OAuth callbacks",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Filestash",
      "description": "Run as root so container can write to root-owned volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "filestash"
      }
    },
    "cli": "railway deploy --template filestash",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7bba6390-7d16-4b41-bd47-6b6ca4d16ade",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1de14a64-2265-4f1f-87a2-69f1299f6aa6": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/filestash.svg",
                  "name": "Filestash",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'mkdir -p /app/data/state/log /app/data/state/config /app/data/state/db /app/data/state/certs /app/data/state/plugins /app/data/state/search && exec /app/filestash'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "machines/filestash:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public-facing port (Filestash hardcodes 8334)",
                      "defaultValue": "8334"
                    },
                    "CANARY": {
                      "isOptional": false,
                      "description": "Enable newer/beta Filestash features",
                      "defaultValue": "true"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity (DEBUG, INFO, WARNING, ERROR)",
                      "defaultValue": "INFO"
                    },
                    "APPLICATION_URL": {
                      "isOptional": false,
                      "description": "Public URL for share links and OAuth callbacks",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so container can write to root-owned volume",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "1de14a64-2265-4f1f-87a2-69f1299f6aa6": {
                      "mountPath": "/app/data/state"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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-20T11:49:27.948Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2e4925d1e25d4a169bc6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 0,
    "typical_start_seconds": 1,
    "slowest_service": "Filestash"
  }
}
