{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bcf1a010-ce70-4f64-b450-95b5ce539e71",
    "slug": "booklore",
    "name": "Booklore",
    "description": "Self-hosted book and audiobook library management.",
    "url": "https://railway.com/deploy/booklore",
    "upstream": {
      "repo_url": "https://github.com/matthewspear/booklore-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "mariadb:latest",
      "source": {
        "image": "mariadb:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "booklore-railway",
      "source": {
        "repo": "https://github.com/matthewspear/booklore-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/booklore-data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MARIADB_USER",
      "service": "mariadb:latest",
      "description": "Database username for BookLore",
      "secret": false,
      "strategy": "default",
      "default": "booklore"
    },
    {
      "key": "MARIADB_DATABASE",
      "service": "mariadb:latest",
      "description": "Database name for BookLore",
      "secret": false,
      "strategy": "default",
      "default": "booklore"
    },
    {
      "key": "MARIADB_PASSWORD",
      "service": "mariadb:latest",
      "description": "Database password (auto-generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "mariadb:latest",
      "description": "Root password for admin access (auto-generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_PRIVATE_DOMAIN",
      "service": "mariadb:latest",
      "description": "The private DNS name of the service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TZ",
      "service": "booklore-railway",
      "description": "Timezone (e.g. Etc/UTC, America/New_York)",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "USER_ID",
      "service": "booklore-railway",
      "description": "Linux user ID for file permissions",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "GROUP_ID",
      "service": "booklore-railway",
      "description": "Linux group ID for file permissions",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "DISK_TYPE",
      "service": "booklore-railway",
      "description": "Storage type: LOCAL or NETWORK",
      "secret": false,
      "strategy": "default",
      "default": "LOCAL"
    },
    {
      "key": "DATABASE_URL",
      "service": "booklore-railway",
      "description": "JDBC connection string for MariaDB/MySQL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "booklore-railway",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_USERNAME",
      "service": "booklore-railway",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "booklore"
      }
    },
    "cli": "railway deploy --template booklore",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bcf1a010-ce70-4f64-b450-95b5ce539e71",
            "serializedConfig": {
              "services": {
                "48b3efdd-19b6-4758-9e82-cb47986eb861": {
                  "icon": "https://cdn.svgporn.com/logos/mariadb-icon.svg",
                  "name": "mariadb:latest",
                  "source": {
                    "image": "mariadb:latest"
                  },
                  "variables": {
                    "MARIADB_USER": {
                      "description": "Database username for BookLore",
                      "defaultValue": "booklore"
                    },
                    "MARIADB_DATABASE": {
                      "description": "Database name for BookLore",
                      "defaultValue": "booklore"
                    },
                    "MARIADB_PASSWORD": {
                      "description": "Database password (auto-generated)",
                      "defaultValue": "{{MARIADB_PASSWORD}}"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "description": "Root password for admin access (auto-generated)",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    },
                    "MARIADB_PRIVATE_DOMAIN": {
                      "description": "The private DNS name of the service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  },
                  "volumeMounts": {
                    "48b3efdd-19b6-4758-9e82-cb47986eb861": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "9bb655c9-f735-4160-843d-27e385139b6d": {
                  "icon": "https://raw.githubusercontent.com/booklore-app/booklore/develop/assets/logo.svg",
                  "name": "booklore-railway",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "repo": "matthewspear/booklore-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "description": "Timezone (e.g. Etc/UTC, America/New_York)",
                      "defaultValue": "Etc/UTC"
                    },
                    "USER_ID": {
                      "description": "Linux user ID for file permissions",
                      "defaultValue": "1000"
                    },
                    "GROUP_ID": {
                      "description": "Linux group ID for file permissions",
                      "defaultValue": "1000"
                    },
                    "DISK_TYPE": {
                      "description": "Storage type: LOCAL or NETWORK",
                      "defaultValue": "LOCAL"
                    },
                    "DATABASE_URL": {
                      "description": "JDBC connection string for MariaDB/MySQL",
                      "defaultValue": "jdbc:mariadb://${{mariadb:latest.MARIADB_PRIVATE_DOMAIN}}:3306/booklore"
                    },
                    "DATABASE_PASSWORD": {
                      "description": "Database password",
                      "defaultValue": "${{mariadb:latest.MARIADB_PASSWORD}}"
                    },
                    "DATABASE_USERNAME": {
                      "description": "Database username",
                      "defaultValue": "${{mariadb:latest.MARIADB_USER}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:6060": {
                        "port": 6060
                      }
                    }
                  },
                  "volumeMounts": {
                    "9bb655c9-f735-4160-843d-27e385139b6d": {
                      "mountPath": "/booklore-data",
                      "backupSchedules": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T13:32:45.587Z",
  "generator_version": "0.1.0"
}
