{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b1f11f33-08cf-4582-acea-c932525b7c40",
    "slug": "openinary-1",
    "name": "Openinary",
    "description": "Openinary is a self-hosted Cloudinary alternative.",
    "url": "https://railway.com/deploy/openinary-1",
    "upstream": {
      "image": "openinary/openinary"
    }
  },
  "services": [
    {
      "name": "Openinary App",
      "source": {
        "image": "openinary/openinary"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Openinary App",
      "description": "API PORT - Mandatory for healthchecks",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "IMAGE_TAG",
      "service": "Openinary App",
      "description": "Openinary Version",
      "secret": false,
      "strategy": "default",
      "default": "latest"
    },
    {
      "key": "API_SECRET",
      "service": "Openinary App",
      "description": "Used for authenticated upload requests",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "STORAGE_REGION",
      "service": "Openinary App",
      "description": "S3-compatible Storage Region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "Openinary App",
      "description": "Base domain for authentification",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "STORAGE_ENDPOINT",
      "service": "Openinary App",
      "description": "S3-compatible Storage Endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "Openinary App",
      "description": "32 bytes secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "STORAGE_BUCKET_NAME",
      "service": "Openinary App",
      "description": "S3-compatible Storage Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_ACCESS_KEY_ID",
      "service": "Openinary App",
      "description": "S3-compatible Storage Key Identifier",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_API_BASE_URL",
      "service": "Openinary App",
      "description": "Base URL for api calls",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "STORAGE_SECRET_ACCESS_KEY",
      "service": "Openinary App",
      "description": "S3-compatible Storage Access Key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openinary-1"
      }
    },
    "cli": "railway deploy --template openinary-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b1f11f33-08cf-4582-acea-c932525b7c40",
            "serializedConfig": {
              "buckets": {
                "54a27ec7-2f14-4d9e-8cbc-5365933bc314": {
                  "name": "Assets Storage"
                }
              },
              "services": {
                "62533d86-df4e-48fe-9fdb-5be011b6bf78": {
                  "icon": "https://templates.dokploy.com/blueprints/openinary/openinary.svg",
                  "name": "Openinary App",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "openinary/openinary"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "API PORT - Mandatory for healthchecks",
                      "defaultValue": "3000"
                    },
                    "IMAGE_TAG": {
                      "isOptional": false,
                      "description": "Openinary Version",
                      "defaultValue": "latest"
                    },
                    "API_SECRET": {
                      "isOptional": false,
                      "description": "Used for authenticated upload requests",
                      "defaultValue": "{{API_SECRET}}"
                    },
                    "STORAGE_REGION": {
                      "isOptional": false,
                      "description": "S3-compatible Storage Region",
                      "defaultValue": "${{Assets Storage.REGION}}"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Base domain for authentification",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "STORAGE_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible Storage Endpoint",
                      "defaultValue": "${{Assets Storage.ENDPOINT}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "32 bytes secret",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "STORAGE_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "S3-compatible Storage Name",
                      "defaultValue": "${{Assets Storage.BUCKET}}"
                    },
                    "STORAGE_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "S3-compatible Storage Key Identifier",
                      "defaultValue": "${{Assets Storage.ACCESS_KEY_ID}}"
                    },
                    "NEXT_PUBLIC_API_BASE_URL": {
                      "isOptional": false,
                      "description": "Base URL for api calls",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "STORAGE_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3-compatible Storage Access Key",
                      "defaultValue": "${{Assets Storage.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "62533d86-df4e-48fe-9fdb-5be011b6bf78": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Openinary App",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T15:34:36.999Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_39e29f67155e497d9eb9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
