{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ff0727fa-e843-4b46-a27b-6ad734959981",
    "slug": "sofa",
    "name": "sofa",
    "description": "🍿 Self-hosted movie and TV show scrobbler for web, iOS, and Android",
    "url": "https://railway.com/deploy/sofa",
    "upstream": {
      "image": "ghcr.io/jakejarvis/sofa:latest"
    }
  },
  "services": [
    {
      "name": "sofa",
      "source": {
        "image": "ghcr.io/jakejarvis/sofa:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "sofa",
      "description": "Default listening port for Hono",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LOG_LEVEL",
      "service": "sofa",
      "description": "Optional log level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "sofa",
      "description": "Required, set to public domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "sofa",
      "description": "Workaround for bucket ownership",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "sofa",
      "description": "Required, generate with `bunx @better-auth/cli secret` or `openssl rand -base64 32`",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TMDB_API_READ_ACCESS_TOKEN",
      "service": "sofa",
      "description": "Required, see https://sofa.watch/docs/configuration#required-variables",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sofa"
      }
    },
    "cli": "railway deploy --template sofa",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ff0727fa-e843-4b46-a27b-6ad734959981",
            "serializedConfig": {
              "buckets": {
                "af844dda-ff57-4d01-89d2-1a5995ff321e": {
                  "name": "sofa-data"
                }
              },
              "services": {
                "f425188a-1222-4d5f-9874-4712df68ad89": {
                  "icon": "https://sofa.watch/icon.svg",
                  "name": "sofa",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/jakejarvis/sofa:latest",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Default listening port for Hono",
                      "defaultValue": "8080"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Optional log level",
                      "defaultValue": "info"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Required, set to public domain",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Workaround for bucket ownership",
                      "defaultValue": "0"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Required, generate with `bunx @better-auth/cli secret` or `openssl rand -base64 32`",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "TMDB_API_READ_ACCESS_TOKEN": {
                      "isOptional": false,
                      "description": "Required, see https://sofa.watch/docs/configuration#required-variables",
                      "defaultValue": "{{TMDB_API_READ_ACCESS_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "f425188a-1222-4d5f-9874-4712df68ad89": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "sofa",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T16:14:56.866Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T16:40:48.272Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_fa53f17cde6b467b8ec1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
