{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4816b3ab-08a1-44e1-941d-3b66f6225414",
    "slug": "bewcloud-personal-cloud",
    "name": "bewCloud Personal Cloud",
    "description": "Personal files, notes, feeds, photos, and expenses with PostgreSQL.",
    "url": "https://railway.com/deploy/bewcloud-personal-cloud",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "app",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data-files",
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17@sha256:f4c66b820c6f974249089d3d16d86a3698eae11e8746eb6644b2271031e91232"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "bewcloud",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "app",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "JWT_SECRET",
      "service": "app",
      "description": "Generated jwt secret. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PUBLIC_URL",
      "service": "app",
      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PASSWORD_SALT",
      "service": "app",
      "description": "Generated password salt. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRESQL_HOST",
      "service": "app",
      "description": "Postgresql host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRESQL_PORT",
      "service": "app",
      "description": "Postgresql port for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRESQL_USER",
      "service": "app",
      "description": "Postgresql user for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "bewcloud"
    },
    {
      "key": "POSTGRESQL_DBNAME",
      "service": "app",
      "description": "Postgresql dbname for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "bewcloud"
    },
    {
      "key": "POSTGRESQL_PASSWORD",
      "service": "app",
      "description": "Postgresql password resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "app",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/round9/bewcloud/Dockerfile"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
      "secret": false,
      "strategy": "default",
      "default": "bewcloud"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
      "secret": false,
      "strategy": "default",
      "default": "bewcloud"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "bewcloud",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNER_AUTH",
      "service": "bewcloud",
      "description": "Require owner authentication for every application route.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "bewcloud",
      "description": "Protect all application routes.",
      "secret": false,
      "strategy": "default",
      "default": "all"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "bewcloud",
      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "bewcloud",
      "description": "Upstream port for bewcloud. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "bewcloud",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "bewcloud",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round6-gateway/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bewcloud-personal-cloud"
      }
    },
    "cli": "railway deploy --template bewcloud-personal-cloud",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4816b3ab-08a1-44e1-941d-3b66f6225414",
            "serializedConfig": {
              "services": {
                "075baac2-9165-547d-9f87-f99c96eb507d": {
                  "name": "app",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/round9/bewcloud/Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/app/data-files",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8000"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Generated jwt secret. Keep private and preserve with backups.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{bewcloud.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PASSWORD_SALT": {
                      "isOptional": false,
                      "description": "Generated password salt. Keep private and preserve with backups.",
                      "defaultValue": "{{PASSWORD_SALT}}"
                    },
                    "POSTGRESQL_HOST": {
                      "isOptional": false,
                      "description": "Postgresql host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRESQL_PORT": {
                      "isOptional": false,
                      "description": "Postgresql port for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "5432"
                    },
                    "POSTGRESQL_USER": {
                      "isOptional": false,
                      "description": "Postgresql user for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "bewcloud"
                    },
                    "POSTGRESQL_DBNAME": {
                      "isOptional": false,
                      "description": "Postgresql dbname for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "bewcloud"
                    },
                    "POSTGRESQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgresql password resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{postgres.POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/round9/bewcloud/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "eca58b26-a723-53f3-824a-51f79ef69a9a": {
                      "mountPath": "/app/data-files"
                    }
                  }
                },
                "281856d6-a6be-5b46-a8f4-a8a06767e38c": {
                  "name": "postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17@sha256:f4c66b820c6f974249089d3d16d86a3698eae11e8746eb6644b2271031e91232"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory within the persistent volume. Do not change on an existing database.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial PostgreSQL database name, or the matching database selected by the application.",
                      "defaultValue": "bewcloud"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL initialization user, or the matching connection user for the private database.",
                      "defaultValue": "bewcloud"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password. Generated for the database and referenced by dependent services; keep private.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "fce22db3-b075-5a94-ba1f-d1525bbeaff1": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "69c0c6b5-aa95-5877-9b7d-862be4670f2b": {
                  "name": "bewcloud",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round6-gateway/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Require owner authentication for every application route.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Protect all application routes.",
                      "defaultValue": "all"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{app.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Upstream port for bewcloud. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "8000"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated access password. Keep private and preserve with backups.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "shared/round6-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "bewcloud",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T07:58:10.700Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f86fa4fdd0754a97843e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 127,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "bewcloud"
  }
}
