{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0d668d73-9555-4d00-8994-9df2c372aa4c",
    "slug": "thumbor-imaging",
    "name": "Thumbor",
    "description": "Image CDN that crops, resizes and filters photos from a URL",
    "url": "https://railway.com/deploy/thumbor-imaging",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/thumbor-railway"
    }
  },
  "services": [
    {
      "name": "remotecv",
      "source": {
        "repo": "https://github.com/gridalpha/thumbor-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "thumbor",
      "source": {
        "repo": "https://github.com/gridalpha/thumbor-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "remotecv",
      "description": "Health check listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ROLE",
      "service": "remotecv",
      "description": "Selects the OpenCV detection worker role",
      "secret": false,
      "strategy": "default",
      "default": "worker"
    },
    {
      "key": "REDIS_URL",
      "service": "remotecv",
      "description": "Detection queue and focal-point store",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DETECTOR_TIMEOUT",
      "service": "remotecv",
      "description": "Seconds one detection job may run",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "THUMBOR_LOG_LEVEL",
      "service": "remotecv",
      "description": "Worker log level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "remotecv",
      "description": "Health check window on first boot",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "thumbor",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "8888"
    },
    {
      "key": "ROLE",
      "service": "thumbor",
      "description": "Selects the HTTP image server role",
      "secret": false,
      "strategy": "default",
      "default": "server"
    },
    {
      "key": "MAX_AGE",
      "service": "thumbor",
      "description": "Cache-Control max-age on renders",
      "secret": false,
      "strategy": "default",
      "default": "86400"
    },
    {
      "key": "QUALITY",
      "service": "thumbor",
      "description": "JPEG quality for rendered images",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "AUTO_AVIF",
      "service": "thumbor",
      "description": "Serve AVIF when the browser accepts it",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTO_WEBP",
      "service": "thumbor",
      "description": "Serve WebP when the browser accepts it",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MAX_WIDTH",
      "service": "thumbor",
      "description": "Maximum requested width, 0 unlimited",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_URL",
      "service": "thumbor",
      "description": "Detection queue and focal-point store",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "thumbor",
      "description": "Bucket for source and result caches",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "thumbor",
      "description": "Bucket placement region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAX_HEIGHT",
      "service": "thumbor",
      "description": "Maximum requested height, 0 unlimited",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "thumbor",
      "description": "S3 API endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECURITY_KEY",
      "service": "thumbor",
      "description": "HMAC key that signs every image URL",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DETECTION_MODE",
      "service": "thumbor",
      "description": "queued, local or none",
      "secret": false,
      "strategy": "default",
      "default": "queued"
    },
    {
      "key": "UPLOAD_ENABLED",
      "service": "thumbor",
      "description": "Keep the unauthenticated upload endpoint off",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ALLOW_UNSAFE_URL",
      "service": "thumbor",
      "description": "Reject unsigned /unsafe/ URLs",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "thumbor",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "THUMBOR_LOG_LEVEL",
      "service": "thumbor",
      "description": "Application log level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "thumbor",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_EXPIRATION_SECONDS",
      "service": "thumbor",
      "description": "Cache lifetime for originals and results",
      "secret": false,
      "strategy": "default",
      "default": "2592000"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "thumbor",
      "description": "Health check window on first boot",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "ACCESS_CONTROL_ALLOW_ORIGIN_HEADER",
      "service": "thumbor",
      "description": "CORS origin header on responses",
      "secret": false,
      "strategy": "default",
      "default": "*"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "thumbor-imaging"
      }
    },
    "cli": "railway deploy --template thumbor-imaging",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0d668d73-9555-4d00-8994-9df2c372aa4c",
            "serializedConfig": {
              "buckets": {
                "f83befab-049f-4d58-93b8-2fee9884d685": {
                  "name": "thumbor-storage"
                }
              },
              "services": {
                "0d8b02ac-f4e0-4d5b-8dfc-967a3c602ec4": {
                  "icon": "https://cdn.simpleicons.org/opencv/5C3EE8.svg",
                  "name": "remotecv",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/thumbor-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health check listening port",
                      "defaultValue": "8080"
                    },
                    "ROLE": {
                      "isOptional": false,
                      "description": "Selects the OpenCV detection worker role",
                      "defaultValue": "worker"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Detection queue and focal-point store",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DETECTOR_TIMEOUT": {
                      "isOptional": true,
                      "description": "Seconds one detection job may run",
                      "defaultValue": "60"
                    },
                    "THUMBOR_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Worker log level",
                      "defaultValue": "info"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window on first boot",
                      "defaultValue": "300"
                    }
                  }
                },
                "11bb68fe-d746-44c6-8367-554e1160d8ab": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "11bb68fe-d746-44c6-8367-554e1160d8ab": {
                      "mountPath": "/data"
                    }
                  }
                },
                "f9cf96cd-39b3-4a90-be77-f5222f6dee33": {
                  "icon": "https://raw.githubusercontent.com/thumbor/thumbor/master/logo-thumbor.png",
                  "name": "thumbor",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/thumbor-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "8888"
                    },
                    "ROLE": {
                      "isOptional": false,
                      "description": "Selects the HTTP image server role",
                      "defaultValue": "server"
                    },
                    "MAX_AGE": {
                      "isOptional": true,
                      "description": "Cache-Control max-age on renders",
                      "defaultValue": "86400"
                    },
                    "QUALITY": {
                      "isOptional": true,
                      "description": "JPEG quality for rendered images",
                      "defaultValue": "80"
                    },
                    "AUTO_AVIF": {
                      "isOptional": true,
                      "description": "Serve AVIF when the browser accepts it",
                      "defaultValue": "false"
                    },
                    "AUTO_WEBP": {
                      "isOptional": true,
                      "description": "Serve WebP when the browser accepts it",
                      "defaultValue": "true"
                    },
                    "MAX_WIDTH": {
                      "isOptional": true,
                      "description": "Maximum requested width, 0 unlimited",
                      "defaultValue": "0"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Detection queue and focal-point store",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket for source and result caches",
                      "defaultValue": "${{thumbor-storage.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket placement region",
                      "defaultValue": "${{thumbor-storage.REGION}}"
                    },
                    "MAX_HEIGHT": {
                      "isOptional": true,
                      "description": "Maximum requested height, 0 unlimited",
                      "defaultValue": "0"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 API endpoint",
                      "defaultValue": "${{thumbor-storage.ENDPOINT}}"
                    },
                    "SECURITY_KEY": {
                      "isOptional": false,
                      "description": "HMAC key that signs every image URL",
                      "defaultValue": "{{SECURITY_KEY}}"
                    },
                    "DETECTION_MODE": {
                      "isOptional": true,
                      "description": "queued, local or none",
                      "defaultValue": "queued"
                    },
                    "UPLOAD_ENABLED": {
                      "isOptional": true,
                      "description": "Keep the unauthenticated upload endpoint off",
                      "defaultValue": "false"
                    },
                    "ALLOWED_SOURCES": {
                      "isOptional": true,
                      "description": "Comma-separated hosts the loader may fetch",
                      "defaultValue": ""
                    },
                    "ALLOW_UNSAFE_URL": {
                      "isOptional": true,
                      "description": "Reject unsigned /unsafe/ URLs",
                      "defaultValue": "false"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{thumbor-storage.ACCESS_KEY_ID}}"
                    },
                    "THUMBOR_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Application log level",
                      "defaultValue": "info"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{thumbor-storage.SECRET_ACCESS_KEY}}"
                    },
                    "STORAGE_EXPIRATION_SECONDS": {
                      "isOptional": true,
                      "description": "Cache lifetime for originals and results",
                      "defaultValue": "2592000"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window on first boot",
                      "defaultValue": "300"
                    },
                    "ACCESS_CONTROL_ALLOW_ORIGIN_HEADER": {
                      "isOptional": true,
                      "description": "CORS origin header on responses",
                      "defaultValue": "*"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8888": {
                        "port": 8888
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "thumbor",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-09T22:14:39.753Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T19:34:38.620Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_be234218f46a4f97b4e2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
