{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5df466d2-849e-494f-b13a-29afe90b455b",
    "slug": "corey",
    "name": "COREY",
    "description": "View, validate, and edit IFC files with built-in MCP access for AI clients.",
    "url": "https://railway.com/deploy/corey",
    "upstream": {
      "image": "ghcr.io/jhjhjhjh/corey:latest"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "COREY",
      "source": {
        "image": "ghcr.io/jhjhjhjh/corey:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MCP",
      "source": {
        "image": "ghcr.io/jhjhjhjh/corey-mcp:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Bucket",
      "source": {
        "repo": "https://github.com/railwayapp-templates/minio"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Console",
      "source": {
        "repo": "https://github.com/railwayapp-templates/minio-console"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "COREY",
      "description": "COREY application port",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "HOSTNAME",
      "service": "COREY",
      "description": "Bind on Railway private networking",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "S3_BUCKET",
      "service": "COREY",
      "description": "S3/MinIO bucket used to store IFC model files",
      "secret": false,
      "strategy": "default",
      "default": "corey-models"
    },
    {
      "key": "S3_REGION",
      "service": "COREY",
      "description": "S3 region used by the storage client",
      "secret": false,
      "strategy": "default",
      "default": "ap-southeast-1"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "COREY",
      "description": "Private internal MinIO/S3 endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "COREY",
      "description": "PostgreSQL database connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "COREY",
      "description": "S3/MinIO access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "COREY",
      "description": "S3/MinIO secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCS_EXTERNAL_URL",
      "service": "COREY",
      "description": "Public documentation URL",
      "secret": false,
      "strategy": "default",
      "default": "https://coreyifc.com/docs"
    },
    {
      "key": "COREY_APP_PUBLIC_URL",
      "service": "COREY",
      "description": "Public COREY application URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "COREY_MCP_BRIDGE_URL",
      "service": "COREY",
      "description": "Public WebSocket endpoint for the browser-to-MCP bridge",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "COREY_MCP_PUBLIC_URL",
      "service": "COREY",
      "description": "Public MCP Streamable HTTP endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "COREY_MAX_MODEL_BYTES",
      "service": "COREY",
      "description": "Maximum IFC model upload size in bytes",
      "secret": false,
      "strategy": "default",
      "default": "262144000"
    },
    {
      "key": "COREY_MCP_ADMIN_USERS",
      "service": "COREY",
      "description": "Comma-separated COREY user IDs allowed to manage MCP access",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "COREY_MCP_INTERNAL_URL",
      "service": "COREY",
      "description": "Private MCP service URL used by COREY",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "COREY_MCP_BRIDGE_SECRET",
      "service": "COREY",
      "description": "Shared secret used to authenticate the COREY browser bridge",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "MCP",
      "description": "Railway public service port",
      "secret": false,
      "strategy": "default",
      "default": "4001"
    },
    {
      "key": "COREY_BASE_URL",
      "service": "MCP",
      "description": "Private URL of the COREY application service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "COREY_MCP_BIND",
      "service": "MCP",
      "description": "Bind on Railway private networking",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "COREY_MCP_PORT",
      "service": "MCP",
      "description": "COREY MCP HTTP and WebSocket port",
      "secret": false,
      "strategy": "default",
      "default": "4001"
    },
    {
      "key": "COREY_USER_HEADER",
      "service": "MCP",
      "description": "Trusted user identity header sent to COREY",
      "secret": false,
      "strategy": "default",
      "default": "x-forwarded-user"
    },
    {
      "key": "COREY_APP_PUBLIC_URL",
      "service": "MCP",
      "description": "Public COREY application URL used by MCP OAuth",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "COREY_MCP_PUBLIC_URL",
      "service": "MCP",
      "description": "Public MCP Streamable HTTP endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "COREY_MCP_TRUST_PROXY",
      "service": "MCP",
      "description": "Number of trusted Railway ingress proxy hops",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "COREY_MCP_BRIDGE_SECRET",
      "service": "MCP",
      "description": "Generated secret shared with the COREY application bridge",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "COREY_MCP_ALLOWED_ORIGINS",
      "service": "MCP",
      "description": "Allowed browser origin for the COREY bridge",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "COREY_MCP_INDEX_CACHE_ENTRIES",
      "service": "MCP",
      "description": "Maximum number of cached IFC indexes",
      "secret": false,
      "strategy": "default",
      "default": "3"
    },
    {
      "key": "PORT",
      "service": "Bucket",
      "description": "Application internal port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "Bucket",
      "description": "MinIO root/admin username",
      "secret": false,
      "strategy": "default",
      "default": "P1zqPuFf7N71dasJ3XWWVZQEqOHI4y4s"
    },
    {
      "key": "MINIO_PUBLIC_HOST",
      "service": "Bucket",
      "description": "Public Railway domain for MinIO access",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MINIO_PUBLIC_PORT",
      "service": "Bucket",
      "description": "Public HTTPS port for MinIO access",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "MINIO_PRIVATE_HOST",
      "service": "Bucket",
      "description": "Private Railway domain for internal MinIO access",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MINIO_PRIVATE_PORT",
      "service": "Bucket",
      "description": "Private internal MinIO API port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "Bucket",
      "description": "MinIO root/admin password",
      "secret": true,
      "strategy": "default",
      "default": "1TYiHS7XOzU1cXgFJHmNLUbY2dethPPDi791U5tqGm8viziX"
    },
    {
      "key": "MINIO_PUBLIC_ENDPOINT",
      "service": "Bucket",
      "description": "Public MinIO API endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_PRIVATE_ENDPOINT",
      "service": "Bucket",
      "description": "Private internal MinIO API endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_BROWSER_REDIRECT_URL",
      "service": "Bucket",
      "description": "MinIO console/browser redirect URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "Console",
      "description": "Port",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "PASSWORD",
      "service": "Console",
      "description": "Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "USERNAME",
      "service": "Console",
      "description": "Username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONSOLE_MINIO_SERVER",
      "service": "Console",
      "description": "Endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "corey"
      }
    },
    "cli": "railway deploy --template corey",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5df466d2-849e-494f-b13a-29afe90b455b",
            "serializedConfig": {
              "services": {
                "1c58ffff-ca22-4a7e-90fe-682664c295e7": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "1c58ffff-ca22-4a7e-90fe-682664c295e7": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "25315c63-d3be-4f38-a09e-0773fa90cac1": {
                  "icon": "https://github.com/user-attachments/assets/9f971098-0a6b-4ac4-88a0-3c9de7563ffd",
                  "name": "COREY",
                  "deploy": {
                    "healthcheckPath": "/api/health",
                    "preDeployCommand": [
                      "npx prisma migrate deploy"
                    ]
                  },
                  "source": {
                    "image": "ghcr.io/jhjhjhjh/corey:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "COREY application port",
                      "defaultValue": "4000"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Bind on Railway private networking",
                      "defaultValue": "::"
                    },
                    "S3_BUCKET": {
                      "description": "S3/MinIO bucket used to store IFC model files",
                      "defaultValue": "corey-models"
                    },
                    "S3_REGION": {
                      "description": "S3 region used by the storage client",
                      "defaultValue": "ap-southeast-1"
                    },
                    "S3_ENDPOINT": {
                      "description": "Private internal MinIO/S3 endpoint",
                      "defaultValue": "http://${{Bucket.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "DATABASE_URL": {
                      "description": "PostgreSQL database connection URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "S3_ACCESS_KEY": {
                      "description": "S3/MinIO access key",
                      "defaultValue": "${{Bucket.MINIO_ROOT_USER}}"
                    },
                    "S3_SECRET_KEY": {
                      "description": "S3/MinIO secret key",
                      "defaultValue": "${{Bucket.MINIO_ROOT_PASSWORD}}"
                    },
                    "DOCS_EXTERNAL_URL": {
                      "description": "Public documentation URL",
                      "defaultValue": "https://coreyifc.com/docs"
                    },
                    "COREY_APP_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public COREY application URL",
                      "defaultValue": "https://${{COREY.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "COREY_MCP_BRIDGE_URL": {
                      "isOptional": false,
                      "description": "Public WebSocket endpoint for the browser-to-MCP bridge",
                      "defaultValue": "wss://${{MCP.RAILWAY_PUBLIC_DOMAIN}}/bridge"
                    },
                    "COREY_MCP_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public MCP Streamable HTTP endpoint",
                      "defaultValue": "https://${{MCP.RAILWAY_PUBLIC_DOMAIN}}/mcp"
                    },
                    "COREY_MAX_MODEL_BYTES": {
                      "description": "Maximum IFC model upload size in bytes",
                      "defaultValue": "262144000"
                    },
                    "COREY_MCP_ADMIN_USERS": {
                      "isOptional": false,
                      "description": "Comma-separated COREY user IDs allowed to manage MCP access",
                      "defaultValue": "local"
                    },
                    "COREY_MCP_INTERNAL_URL": {
                      "isOptional": false,
                      "description": "Private MCP service URL used by COREY",
                      "defaultValue": "http://${{MCP.RAILWAY_PRIVATE_DOMAIN}}:4001"
                    },
                    "COREY_MCP_BRIDGE_SECRET": {
                      "isOptional": false,
                      "description": "Shared secret used to authenticate the COREY browser bridge",
                      "defaultValue": "${{MCP.COREY_MCP_BRIDGE_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  }
                },
                "35a609ea-8981-4588-8630-897373ca78c6": {
                  "icon": "https://github.com/user-attachments/assets/9f971098-0a6b-4ac4-88a0-3c9de7563ffd",
                  "name": "MCP",
                  "build": {},
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/jhjhjhjh/corey-mcp:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Railway public service port",
                      "defaultValue": "4001"
                    },
                    "COREY_BASE_URL": {
                      "isOptional": false,
                      "description": "Private URL of the COREY application service",
                      "defaultValue": "http://${{COREY.RAILWAY_PRIVATE_DOMAIN}}:4000"
                    },
                    "COREY_MCP_BIND": {
                      "isOptional": false,
                      "description": "Bind on Railway private networking",
                      "defaultValue": "::"
                    },
                    "COREY_MCP_PORT": {
                      "isOptional": false,
                      "description": "COREY MCP HTTP and WebSocket port",
                      "defaultValue": "4001"
                    },
                    "COREY_USER_HEADER": {
                      "isOptional": false,
                      "description": "Trusted user identity header sent to COREY",
                      "defaultValue": "x-forwarded-user"
                    },
                    "COREY_APP_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public COREY application URL used by MCP OAuth",
                      "defaultValue": "https://${{COREY.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "COREY_MCP_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public MCP Streamable HTTP endpoint",
                      "defaultValue": "https://${{MCP.RAILWAY_PUBLIC_DOMAIN}}/mcp"
                    },
                    "COREY_MCP_TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Number of trusted Railway ingress proxy hops",
                      "defaultValue": "1"
                    },
                    "COREY_MCP_BRIDGE_SECRET": {
                      "isOptional": false,
                      "description": "Generated secret shared with the COREY application bridge",
                      "defaultValue": "{{COREY_MCP_BRIDGE_SECRET}}"
                    },
                    "COREY_MCP_ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed browser origin for the COREY bridge",
                      "defaultValue": "https://${{COREY.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "COREY_MCP_INDEX_CACHE_ENTRIES": {
                      "isOptional": false,
                      "description": "Maximum number of cached IFC indexes",
                      "defaultValue": "3"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4001": {
                        "port": 4001
                      }
                    }
                  }
                },
                "5d3a393e-5259-4766-bfaf-3edf4a62e876": {
                  "icon": "https://getumbrel.github.io/umbrel-apps-gallery/minio/icon.svg",
                  "name": "Bucket",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec minio server --address [::]:$MINIO_PRIVATE_PORT $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": "/minio/health/ready"
                  },
                  "source": {
                    "repo": "railwayapp-templates/minio",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Application internal port",
                      "defaultValue": "${{MINIO_PRIVATE_PORT}}"
                    },
                    "MINIO_ROOT_USER": {
                      "description": "MinIO root/admin username",
                      "defaultValue": "P1zqPuFf7N71dasJ3XWWVZQEqOHI4y4s"
                    },
                    "MINIO_PUBLIC_HOST": {
                      "description": "Public Railway domain for MinIO access",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MINIO_PUBLIC_PORT": {
                      "description": "Public HTTPS port for MinIO access",
                      "defaultValue": "443"
                    },
                    "MINIO_PRIVATE_HOST": {
                      "description": "Private Railway domain for internal MinIO access",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MINIO_PRIVATE_PORT": {
                      "description": "Private internal MinIO API port",
                      "defaultValue": "9000"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "description": "MinIO root/admin password",
                      "defaultValue": "1TYiHS7XOzU1cXgFJHmNLUbY2dethPPDi791U5tqGm8viziX"
                    },
                    "MINIO_PUBLIC_ENDPOINT": {
                      "description": "Public MinIO API endpoint",
                      "defaultValue": "https://${{MINIO_PUBLIC_HOST}}:${{MINIO_PUBLIC_PORT}}"
                    },
                    "MINIO_PRIVATE_ENDPOINT": {
                      "description": "Private internal MinIO API endpoint",
                      "defaultValue": "http://${{MINIO_PRIVATE_HOST}}:${{MINIO_PRIVATE_PORT}}"
                    },
                    "MINIO_BROWSER_REDIRECT_URL": {
                      "description": "MinIO console/browser redirect URL",
                      "defaultValue": "https://${{Console.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "volumeMounts": {
                    "5d3a393e-5259-4766-bfaf-3edf4a62e876": {
                      "mountPath": "/data"
                    }
                  }
                },
                "dfd01b9f-4a27-4c27-b556-f4efd22d35c0": {
                  "icon": "https://getumbrel.github.io/umbrel-apps-gallery/minio/icon.svg",
                  "name": "Console",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec console server --host 0.0.0.0 --port $PORT\"",
                    "healthcheckPath": "/login"
                  },
                  "source": {
                    "repo": "railwayapp-templates/minio-console",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port",
                      "defaultValue": "9090"
                    },
                    "PASSWORD": {
                      "description": "Password",
                      "defaultValue": "${{Bucket.MINIO_ROOT_PASSWORD}}"
                    },
                    "USERNAME": {
                      "description": "Username",
                      "defaultValue": "${{Bucket.MINIO_ROOT_USER}}"
                    },
                    "CONSOLE_MINIO_SERVER": {
                      "description": "Endpoint",
                      "defaultValue": "${{Bucket.MINIO_PRIVATE_ENDPOINT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9090": {
                        "port": 9090
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "COREY",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T09:20:31.466Z",
  "success_rate_30d": 0.8333,
  "validation": {
    "last_run_id": "run_65d8356e56c74b63aabf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 205,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "COREY"
  }
}
