{
  "manifest_version": "1.0.0",
  "template": {
    "id": "07ec8a88-0df9-4c2d-9e8f-79fa2c4bc952",
    "slug": "audiobookshelf-railway",
    "name": "Audiobookshelf",
    "description": "Self-host Audiobookshelf on Railway: audiobooks, podcasts, ebooks",
    "url": "https://railway.com/deploy/audiobookshelf-railway",
    "upstream": {
      "image": "ghcr.io/advplyr/audiobookshelf:2.36.0"
    }
  },
  "services": [
    {
      "name": "audiobookshelf",
      "source": {
        "image": "ghcr.io/advplyr/audiobookshelf:2.36.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "audiobookshelf",
      "description": "Server timezone for scheduled jobs",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "audiobookshelf",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "CONFIG_PATH",
      "service": "audiobookshelf",
      "description": "SQLite database on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/config"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "audiobookshelf",
      "description": "Node heap ceiling for the container",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=4096"
    },
    {
      "key": "METADATA_PATH",
      "service": "audiobookshelf",
      "description": "Covers, metadata and backups",
      "secret": false,
      "strategy": "default",
      "default": "/data/metadata"
    },
    {
      "key": "JWT_SECRET_KEY",
      "service": "audiobookshelf",
      "description": "Signs access and refresh tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "audiobookshelf-railway"
      }
    },
    "cli": "railway deploy --template audiobookshelf-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "07ec8a88-0df9-4c2d-9e8f-79fa2c4bc952",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "aafa4c48-f3aa-4ef8-bb29-9a2799f6eaff": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/audiobookshelf.svg",
                  "name": "audiobookshelf",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/advplyr/audiobookshelf:2.36.0"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Server timezone for scheduled jobs",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "80"
                    },
                    "CONFIG_PATH": {
                      "isOptional": false,
                      "description": "SQLite database on the volume",
                      "defaultValue": "/data/config"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling for the container",
                      "defaultValue": "--max-old-space-size=4096"
                    },
                    "METADATA_PATH": {
                      "isOptional": false,
                      "description": "Covers, metadata and backups",
                      "defaultValue": "/data/metadata"
                    },
                    "JWT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs access and refresh tokens",
                      "defaultValue": "{{JWT_SECRET_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "aafa4c48-f3aa-4ef8-bb29-9a2799f6eaff": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "audiobookshelf",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T18:00:03.901Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0c6dbdc90d124b139f3b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 18,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "audiobookshelf"
  }
}
