{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b58aa242-e8e9-42f7-8b3e-4447d402839a",
    "slug": "jellyfin-media-server",
    "name": "Jellyfin | Free Open-Source Media Streaming, Plex Alternative",
    "description": "Self-host Jellyfin. Stream movies, TV, and music from your own server",
    "url": "https://railway.com/deploy/jellyfin-media-server",
    "upstream": {
      "image": "jellyfin/jellyfin:latest"
    }
  },
  "services": [
    {
      "name": "Jellyfin",
      "source": {
        "image": "jellyfin/jellyfin:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Jellyfin",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8096"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Jellyfin",
      "description": "Run container as root for volume access",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "JELLYFIN_LOG_DIR",
      "service": "Jellyfin",
      "description": "Log output directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/config/log"
    },
    {
      "key": "JELLYFIN_DATA_DIR",
      "service": "Jellyfin",
      "description": "Data and metadata directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/config/data"
    },
    {
      "key": "JELLYFIN_CACHE_DIR",
      "service": "Jellyfin",
      "description": "Transcoding cache directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/cache"
    },
    {
      "key": "JELLYFIN_CONFIG_DIR",
      "service": "Jellyfin",
      "description": "Configuration directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/config"
    },
    {
      "key": "JELLYFIN_PublishedServerUrl",
      "service": "Jellyfin",
      "description": "Public URL for autodiscovery",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "jellyfin-media-server"
      }
    },
    "cli": "railway deploy --template jellyfin-media-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b58aa242-e8e9-42f7-8b3e-4447d402839a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3fae0e01-6d6c-4550-a905-e301e6b01285": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/jellyfin.svg",
                  "name": "Jellyfin",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "jellyfin/jellyfin:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "8096"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run container as root for volume access",
                      "defaultValue": "0"
                    },
                    "JELLYFIN_LOG_DIR": {
                      "isOptional": false,
                      "description": "Log output directory",
                      "defaultValue": "/data/config/log"
                    },
                    "JELLYFIN_DATA_DIR": {
                      "isOptional": false,
                      "description": "Data and metadata directory",
                      "defaultValue": "/data/config/data"
                    },
                    "JELLYFIN_CACHE_DIR": {
                      "isOptional": false,
                      "description": "Transcoding cache directory",
                      "defaultValue": "/data/cache"
                    },
                    "JELLYFIN_CONFIG_DIR": {
                      "isOptional": false,
                      "description": "Configuration directory",
                      "defaultValue": "/data/config"
                    },
                    "JELLYFIN_PublishedServerUrl": {
                      "isOptional": false,
                      "description": "Public URL for autodiscovery",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "3fae0e01-6d6c-4550-a905-e301e6b01285": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T10:14:42.516Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T13:49:05.733Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_666ef847e4bc4d2eb7a4",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 60,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Jellyfin"
  }
}
