# How to Deploy Audiobookshelf With xCloud One Click Apps

> Deploy the Audiobookshelf audiobook and podcast server on xCloud from the One-Click Apps catalog: server size, the root user, your first library, uploads, backups and updates.

Deploy Audiobookshelf from **Sites → New Site → search Audiobookshelf → choose a server → Continue → fill in the form → Next**. xCloud supplies the Audiobookshelf template, so you do not write a `docker-compose.yml`. This guide is for xCloud users who want their own audiobook and podcast server, with listening progress synced across their devices, on a server they control.

![The New Site app catalog searched for Audiobookshelf, with the Audiobookshelf card highlighted](/_landing/docs/deploy-audiobookshelf-with-xcloud-image-1.png)

## What the Audiobookshelf template includes

| Part | What it does | Good to know |
|---|---|---|
| Audiobookshelf | The audiobook and podcast server, in one container from Audiobookshelf's official image | The app page shows the version it installs (Installs vX.Y.Z), and the Credentials card shows the version on your site. It is only reachable through your domain over HTTPS. |
| Built-in SQLite database | Stores users, libraries and listening progress inside the same container | No separate database server to run. |
| `audiobookshelf_config` volume | Server settings, users, libraries and listening progress | Back it up with the other three. |
| `audiobookshelf_metadata` volume | Covers, metadata and Audiobookshelf's own backups | |
| `audiobookshelf_audiobooks` volume | Your audiobook and ebook files, at `/audiobooks` inside Audiobookshelf | Use this path for a book library. |
| `audiobookshelf_podcasts` volume | Your podcast episodes, at `/podcasts` inside Audiobookshelf | Use this path for a podcast library. |

The install form has no account fields. You create the first account inside Audiobookshelf after the install. Email, single sign-on and hardware transcoding are not set up by the template.

## Before you start

| Requirement | Recommendation | Why it matters |
|---|---|---|
| Server | An NGINX server. xCloud installs Docker on it if it is not there yet. | Audiobookshelf runs in Docker. OpenLiteSpeed servers can't run Docker. |
| Memory and CPU | At least 1 GB RAM and 1 CPU core. The Audiobookshelf page recommends 4 GB RAM. | 1 GB is the minimum the template asks for. |
| Disk | At least 10 GB free, and room for your whole collection | Audiobooks are large files. Covers, metadata and backups add more. |
| Domain | DNS access if you choose **Go Live** | Audiobookshelf's mobile apps connect to your site by its address. |

## Step 1: Find Audiobookshelf in the catalog

Go to **Sites → New Site**. Type **Audiobookshelf** in **Search apps…** and click the **Audiobookshelf** card.

**Expected result:** The Audiobookshelf page shows **Runs on Nginx, Docker**, **Recommended: 4 GB RAM · 1 vCPU · 10 GB disk**, the version it installs, and **Where should it run?** with your servers.

## Step 2: Choose where it runs

Under **Where should it run?**, click one of your servers, or **Deploy on a new server** to create a dedicated one. Then click **Continue**.

![Choosing an existing NGINX server under 'Where should it run?' on the Audiobookshelf app page](/_landing/docs/deploy-audiobookshelf-with-xcloud-image-2.png)

**Expected result:** xCloud opens the **Install Audiobookshelf Into** form for the server you chose. A server that is too small or on the wrong stack is not in the list. Click the **servers cannot run this app** link under the list (it starts with the number of servers, for example **2 servers cannot run this app**) to see why.

## Step 3: Fill in the site form

1. Enter a **Site Title**, for example `Audiobookshelf Library`. Tags are optional.
2. Under **Domain Setup**, choose **Demo Site** to try Audiobookshelf on a test domain, or **Go Live** to use your own domain.

![The Site Title field and Domain Setup choices on the Install Audiobookshelf form](/_landing/docs/deploy-audiobookshelf-with-xcloud-image-3.png)

**Expected result:** The form shows your title and the domain. There are no other fields to fill in.

## Step 4: Click Next and wait for the setup

Click **Next**. xCloud shows the setup progress: it checks the server, installs Docker if needed, sets up the app, then adds SSL, HTTPS and NGINX.

**Expected result:** The site opens on its **Site Overview** when the setup is done.

## Step 5: Copy your Audiobookshelf address

On **Site Overview**, the **Audiobookshelf Credentials** card shows the installed version and the **URL** of your site. Click **Copy** next to it. The card has no password, because you create the account in the next step.

![The Audiobookshelf Credentials card on Site Overview with the URL and its Copy button](/_landing/docs/deploy-audiobookshelf-with-xcloud-image-4.png)

**Expected result:** You have the address of your Audiobookshelf site.

## Step 6: Create the root user

Open the **URL**. Audiobookshelf shows **Initial Server Setup**. Under **Create Root User**, enter a **Username**, a **Password** and the same password again in **Confirm Password**. Leave **Config Path** (`/config`) and **Metadata Path** (`/metadata`) as they are, then click **Submit**.

![Audiobookshelf's Initial Server Setup page with the Create Root User fields](/_landing/docs/deploy-audiobookshelf-with-xcloud-image-5.png)

**Expected result:** Audiobookshelf shows its **Login** page. Sign in with the username and password you just chose. This account is the root administrator. Save the password in your password manager: xCloud does not store it.

Open the URL soon after the install. Until the root user exists, anyone who opens the address can create it.

## Step 7: Add your first library

After the first sign-in, Audiobookshelf opens **Settings → Libraries**. Click **Add your first library**. Enter a **Library Name**, type `/audiobooks` in the folder path field and press **Enter**, then click **Create**. For podcasts, choose **Podcasts** as the **Media Type** and use `/podcasts` instead.

![The New Library dialog in Audiobookshelf with /audiobooks added under Folders](/_landing/docs/deploy-audiobookshelf-with-xcloud-image-6.png)

**Expected result:** Audiobookshelf says the library was created and lists it under **Libraries**.

Then add your files with Audiobookshelf's **Upload** page: drag files or folders onto it and pick the library. Browser uploads are capped at **100 MB per file** on xCloud, so a large single-file audiobook can fail to upload. Folder names affect how Audiobookshelf matches books to their details, so follow its [library guide](https://www.audiobookshelf.org/docs/category/libraries) when you organise a big collection.

Adding users, podcast feeds and the mobile apps all happen inside Audiobookshelf, not in xCloud. Those steps come from Audiobookshelf's documentation and were not tested on an xCloud install.

## Back up and update Audiobookshelf

Audiobookshelf keeps its data on four volumes: `audiobookshelf_config`, `audiobookshelf_metadata`, `audiobookshelf_audiobooks` and `audiobookshelf_podcasts`. An xCloud Docker backup includes the app's named volumes, so it saves all four together with the app's Compose file and environment file.

1. Open **Sites**, select your Audiobookshelf site, then go to **Backup → Previous Backups** and click **Backup Now**. The steps are in [Create an On-demand Backup](/docs/backup-and-restore-docker-apps/#create-an-on-demand-backup).
2. To back up on a schedule, follow [Configure Scheduled Local Backups](/docs/backup-and-restore-docker-apps/#configure-scheduled-local-backups).
3. To keep a copy off the server, follow [Configure Remote Backups](/docs/backup-and-restore-docker-apps/#configure-remote-backups) and choose S3-compatible storage or an SFTP server.

**Expected result:** On **Backup → Previous Backups**, a new backup row changes from **Running** to **Completed**.

A backup includes your audio files, so it can be as large as your collection. Check the free disk on the server and the space at your remote destination before you turn on scheduled backups. A restore replaces the Audiobookshelf data on the same site; read [Restore a Docker App Backup](/docs/backup-and-restore-docker-apps/#restore-a-docker-app-backup) before you use one.

Your site stays on the Audiobookshelf version it installed until you choose to update. When a newer version is available, xCloud shows it on **Site Overview** and on the site's **App Updates** page. [Update a One Click App and edit its Docker Compose](/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud/) walks through it. Read Audiobookshelf's [release notes](https://github.com/advplyr/audiobookshelf/releases) before a big jump, and never delete the four volumes when you recreate the app.

## Troubleshooting

| Problem | Likely cause | Fix |
|---|---|---|
| Your server is not in the list | It has less than 1 GB RAM, 1 CPU core or 10 GB free disk, or it runs OpenLiteSpeed | Click the **servers cannot run this app** link under the list (it starts with the number of servers, for example **2 servers cannot run this app**) to see why. Pick an NGINX server with enough room, or choose **Deploy on a new server** |
| The URL shows an error right after setup | Audiobookshelf is still starting | Wait a minute and refresh |
| The site shows a **Login** page, not **Initial Server Setup** | The root user was already created | Sign in with that account. If you did not create it, back up the site and contact support |
| An upload fails part way | The file is larger than 100 MB | Split the file into parts, or add podcasts by feed so Audiobookshelf downloads the episodes |
| A new library shows no books | The files are not in the folder the library points to | Upload into that library, or check that its folder is `/audiobooks` (books) or `/podcasts` (podcasts) |
| The server runs out of disk | Audio files, covers and backups grew | Remove files you don't need, or move to a server with more disk |

## Frequently asked questions

### Do I need a custom docker-compose.yml to deploy Audiobookshelf on xCloud?

No. The One-Click Apps catalog supplies the Audiobookshelf template. You pick Audiobookshelf, choose a server, fill in the site form and click Next.

### What size server does Audiobookshelf need on xCloud?

The Audiobookshelf template asks for at least 1 GB RAM, 1 CPU core and 10 GB of disk, and the app page recommends 4 GB RAM. Disk is what runs out first: size the server for your whole audiobook and podcast collection.

### Where do I find the Audiobookshelf login after the install?

There is none yet. xCloud does not create an Audiobookshelf account. The first time you open the site, Audiobookshelf asks you to create the root user, and that account becomes the administrator.

### Why does a large audiobook fail to upload from the browser?

Browser uploads to an Audiobookshelf site on xCloud are capped at 100 MB per file. Split large files, or add podcasts by feed so Audiobookshelf downloads the episodes itself.

## Related resources

- [Audiobookshelf hosting on xCloud](/audiobookshelf-hosting/): plans and what is included
- [How to use One-Click App Templates](/docs/how-to-use-one-click-app-templates-in-xcloud/): App Actions, the environment editor and events
- [Update a One Click App and edit its Docker Compose](/docs/update-a-one-click-app-and-edit-its-docker-compose-in-xcloud/)
- [Back up and restore Docker apps](/docs/backup-and-restore-docker-apps/)
- [Browse the One-Click Apps catalog](/one-click-apps/)
- Audiobookshelf's own guides: [Docker installation](https://www.audiobookshelf.org/docs/documentation/install/docker/) and [Libraries](https://www.audiobookshelf.org/docs/category/libraries)

If you run into any issues while deploying Audiobookshelf, feel free to reach out to our [support team](/docs/access-built-in-support-portal-in-xcloud/).
