{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d3b9b219-567f-4438-b94e-03ac3b1774f7",
    "slug": "coollabs-minio",
    "name": "coolLabs MinIO",
    "description": "Deploy and Host coolLabs MinIO with Railway",
    "url": "https://railway.com/deploy/coollabs-minio",
    "upstream": {
      "image": "ghcr.io/coollabsio/minio:RELEASE.2025-10-15T17-29-55Z@sha256:69b55a1c1c5dc285ce04db96689f5b2102317fc77a50680a1874ca6efd1c87f9"
    }
  },
  "services": [
    {
      "name": "Bucket",
      "source": {
        "image": "ghcr.io/coollabsio/minio:RELEASE.2025-10-15T17-29-55Z@sha256:69b55a1c1c5dc285ce04db96689f5b2102317fc77a50680a1874ca6efd1c87f9"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Console",
      "source": {
        "repo": "https://github.com/railwayapp-templates/minio-console"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Bucket",
      "description": "Internal port MinIO listens on",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "Bucket",
      "description": "Root username for MinIO access",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MINIO_PUBLIC_HOST",
      "service": "Bucket",
      "description": "Publicly accessible domain for MinIO",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MINIO_PUBLIC_PORT",
      "service": "Bucket",
      "description": "HTTPS public port",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "MINIO_PRIVATE_HOST",
      "service": "Bucket",
      "description": "Private internal host domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MINIO_PRIVATE_PORT",
      "service": "Bucket",
      "description": "Internal MinIO port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "Bucket",
      "description": "Root password for MinIO",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MINIO_PUBLIC_ENDPOINT",
      "service": "Bucket",
      "description": "Full public HTTPS endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_PRIVATE_ENDPOINT",
      "service": "Bucket",
      "description": "Full internal HTTP endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_BROWSER_REDIRECT_URL",
      "service": "Bucket",
      "description": "Redirect URL for MinIO browser console",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "Console",
      "description": "Port where the MinIO Console service runs",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "PASSWORD",
      "service": "Console",
      "description": "Root password for the MinIO Bucket instance",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "USERNAME",
      "service": "Console",
      "description": "Root username for the MinIO Bucket instance",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONSOLE_MINIO_SERVER",
      "service": "Console",
      "description": "Internal endpoint URL for the MinIO Bucket server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "coollabs-minio"
      }
    },
    "cli": "railway deploy --template coollabs-minio",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d3b9b219-567f-4438-b94e-03ac3b1774f7",
            "serializedConfig": {
              "services": {
                "559a1d26-6fa8-4122-977a-5dc50b6eabe1": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png",
                  "name": "Bucket",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec minio server --address [::]:$MINIO_PRIVATE_PORT $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": "/minio/health/ready"
                  },
                  "source": {
                    "image": "ghcr.io/coollabsio/minio:RELEASE.2025-10-15T17-29-55Z@sha256:69b55a1c1c5dc285ce04db96689f5b2102317fc77a50680a1874ca6efd1c87f9"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Internal port MinIO listens on",
                      "defaultValue": "${{MINIO_PRIVATE_PORT}}"
                    },
                    "MINIO_ROOT_USER": {
                      "description": "Root username for MinIO access",
                      "defaultValue": "{{MINIO_ROOT_USER}}"
                    },
                    "MINIO_PUBLIC_HOST": {
                      "description": "Publicly accessible domain for MinIO",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MINIO_PUBLIC_PORT": {
                      "description": "HTTPS public port",
                      "defaultValue": "443"
                    },
                    "MINIO_PRIVATE_HOST": {
                      "description": "Private internal host domain",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MINIO_PRIVATE_PORT": {
                      "description": "Internal MinIO port",
                      "defaultValue": "9000"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "description": "Root password for MinIO",
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    },
                    "MINIO_PUBLIC_ENDPOINT": {
                      "description": "Full public HTTPS endpoint",
                      "defaultValue": "https://${{MINIO_PUBLIC_HOST}}:${{MINIO_PUBLIC_PORT}}"
                    },
                    "MINIO_PRIVATE_ENDPOINT": {
                      "description": "Full internal HTTP endpoint",
                      "defaultValue": "http://${{MINIO_PRIVATE_HOST}}:${{MINIO_PRIVATE_PORT}}"
                    },
                    "MINIO_BROWSER_REDIRECT_URL": {
                      "description": "Redirect URL for MinIO browser console",
                      "defaultValue": "https://${{Console.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:443": {
                        "port": 443
                      }
                    }
                  },
                  "volumeMounts": {
                    "559a1d26-6fa8-4122-977a-5dc50b6eabe1": {
                      "mountPath": "/data"
                    }
                  }
                },
                "64dc2c20-ee47-4b9b-b35d-95f6f9969334": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png",
                  "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,
                    "commitSha": "f2b900e6d097cc5383533f0e1f52acb9927ead1d",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port where the MinIO Console service runs",
                      "defaultValue": "9090"
                    },
                    "PASSWORD": {
                      "description": "Root password for the MinIO Bucket instance",
                      "defaultValue": "${{Bucket.MINIO_ROOT_PASSWORD}}"
                    },
                    "USERNAME": {
                      "description": "Root username for the MinIO Bucket instance",
                      "defaultValue": "${{Bucket.MINIO_ROOT_USER}}"
                    },
                    "CONSOLE_MINIO_SERVER": {
                      "description": "Internal endpoint URL for the MinIO Bucket server",
                      "defaultValue": "${{Bucket.MINIO_PRIVATE_ENDPOINT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9090": {
                        "port": 9090
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Bucket",
      "method": "GET",
      "path": "/minio/health/ready",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T22:14:37.505Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T01:55:47.982Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_6c25ef112b2d40459940",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": false,
        "detail": "got 502, expected 200"
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ]
  }
}
