{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ad26612f-ac80-4ed4-939d-c69a17f72586",
    "slug": "oxicloud",
    "name": "OxiCloud",
    "description": "Fast Rust file cloud: WebDAV, CalDAV, CardDAV; admin seeded.",
    "url": "https://railway.com/deploy/oxicloud",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/oxicloud-railway:1.0.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "db",
      "source": {
        "image": "postgres:18.2-alpine3.23"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "oxicloud",
      "source": {
        "image": "ghcr.io/youssefsiam38/oxicloud-railway:1.0.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/storage",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_DB",
      "service": "db",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "oxicloud"
    },
    {
      "key": "POSTGRES_USER",
      "service": "db",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "oxicloud"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "db",
      "description": "PostgreSQL password, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "oxicloud",
      "description": "Port Railway routes traffic and health checks to; keep it equal to OXICLOUD_SERVER_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8086"
    },
    {
      "key": "OWNER_EMAIL",
      "service": "oxicloud",
      "description": "Your e-mail address. It becomes the admin account seeded at the first start.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "OWNER_PASSWORD",
      "service": "oxicloud",
      "description": "The admin's password, generated. Copy it from here to sign in.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OWNER_USERNAME",
      "service": "oxicloud",
      "description": "The admin username you sign in with.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "OXICLOUD_BASE_URL",
      "service": "oxicloud",
      "description": "Public base URL for share links and authentication.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OXICLOUD_SERVER_HOST",
      "service": "oxicloud",
      "description": "Provide a value for OXICLOUD_SERVER_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "OXICLOUD_SERVER_PORT",
      "service": "oxicloud",
      "description": "Provide a value for OXICLOUD_SERVER_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8086"
    },
    {
      "key": "OXICLOUD_DB_CONNECTION_STRING",
      "service": "oxicloud",
      "description": "PostgreSQL connection string the server reads.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OXICLOUD_DISABLE_REGISTRATION",
      "service": "oxicloud",
      "description": "true keeps public self-registration off; set false to reopen it.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "oxicloud",
      "description": "The first start runs migrations and seeds the admin.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "oxicloud"
      }
    },
    "cli": "railway deploy --template oxicloud",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ad26612f-ac80-4ed4-939d-c69a17f72586",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "74184350-7999-456c-af9c-c817d6989328": {
                  "icon": null,
                  "name": "db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:18.2-alpine3.23"
                  },
                  "variables": {
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "oxicloud"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "oxicloud"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password, generated.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "74184350-7999-456c-af9c-c817d6989328": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "dc72e8b1-1105-4da5-8692-e3a35005fa60": {
                  "icon": null,
                  "name": "oxicloud",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/oxicloud-railway:1.0.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes traffic and health checks to; keep it equal to OXICLOUD_SERVER_PORT.",
                      "defaultValue": "8086"
                    },
                    "OWNER_EMAIL": {
                      "isOptional": false,
                      "description": "Your e-mail address. It becomes the admin account seeded at the first start.",
                      "defaultValue": "{{OWNER_EMAIL}}"
                    },
                    "OWNER_PASSWORD": {
                      "isOptional": false,
                      "description": "The admin's password, generated. Copy it from here to sign in.",
                      "defaultValue": "{{OWNER_PASSWORD}}"
                    },
                    "OWNER_USERNAME": {
                      "isOptional": false,
                      "description": "The admin username you sign in with.",
                      "defaultValue": "admin"
                    },
                    "OXICLOUD_BASE_URL": {
                      "isOptional": false,
                      "description": "Public base URL for share links and authentication.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OXICLOUD_SERVER_HOST": {
                      "isOptional": false,
                      "defaultValue": "0.0.0.0"
                    },
                    "OXICLOUD_SERVER_PORT": {
                      "isOptional": false,
                      "defaultValue": "8086"
                    },
                    "OXICLOUD_MAX_UPLOAD_SIZE_MB": {
                      "isOptional": true,
                      "description": "Maximum upload size in MB (see OxiCloud's configuration reference)."
                    },
                    "OXICLOUD_DB_CONNECTION_STRING": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string the server reads.",
                      "defaultValue": "postgres://oxicloud:${{db.POSTGRES_PASSWORD}}@${{db.RAILWAY_PRIVATE_DOMAIN}}:5432/oxicloud"
                    },
                    "OXICLOUD_DISABLE_REGISTRATION": {
                      "isOptional": false,
                      "description": "true keeps public self-registration off; set false to reopen it.",
                      "defaultValue": "true"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "The first start runs migrations and seeds the admin.",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8086": {
                        "port": 8086
                      }
                    }
                  },
                  "volumeMounts": {
                    "dc72e8b1-1105-4da5-8692-e3a35005fa60": {
                      "mountPath": "/app/storage"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "oxicloud",
      "method": "GET",
      "path": "/ready",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-17T10:14:36.166Z",
  "generator_version": "0.1.0"
}
