Post

Install AudioBookShelf on a Synology NAS with Docker

Install AudioBookShelf on a Synology NAS with Docker

Audiobookshelf is an open-source, self-hosted platform for managing and streaming audiobooks, ebooks, and podcasts. It offers an intuitive interface and rich features for both single and multi-user setups.

Key Features

  • Audiobook and Ebook Management: Organize your audiobooks and ebooks with metadata and cover art fetched automatically from sources like Audible or Google Books.
  • Podcast Support: Download and manage podcasts directly within the app.
  • Playback Features:
    • Cross-device playback synchronization.
    • Support for Chromecast and progressive web apps.
    • Adjustable playback speeds and sleep timers.
  • Library Updates:
    • Automatic scanning for new content.
    • Drag-and-drop uploads directly into the library.
  • User Management:
    • Multi-user support with independent profiles.
    • Secure access controls.
  • Deployment:
    • Easy to deploy via Docker.
    • Configurable directories for storing content and metadata.

You can find the Official site here.


Create Share Folder

  1. Log in to your Synology NAS
    Access your Synology NAS using your web browser and enter the login credentials.

  2. Open the Main Menu
    In the top-left corner, click on the Main Menu (the icon with squares).

  3. Navigate to File Station
    In the Main Menu, locate and click on File Station to open the file management tool.

  4. Go to the Docker Folder
    In the left sidebar of File Station, find your Docker folder or navigate to the location where you store Docker-related files (you may need to create one if it doesn’t exist).

  5. Create a New Folder
    At the top of File Station, click on Create.
    Select Create Folder from the dropdown menu.
    Name the folder audiobookshelf. Press OK to create the folder. Inside the audiobookshelf folder, Create a folder called metadata.

Now, you have a Audiobookshelf folder in the Docker directory, where you can store configuration files or other relevant data for your setup.


Setting up Task Scheduler

  1. Log in to your Synology NAS.
  2. Navigate to the Main Menu and open the Control Panel.
  3. Scroll down and locate Task Scheduler, then click to open it.
  4. In the top menu bar, click Create, select Scheduled Task, and choose User-defined Script.

  5. In the window that appears:
    • Enter a task name. This can be anything, such as the name of the app you’re installing. It doesn’t need to be specific. Audiobookshelf will be fine.
    • For User, select root from the dropdown menu.
  6. Click on the Schedule tab at the top:
    • Select Run on the following date and leave the Start time and Repeat options at their default values.
  7. Next, click the Task Settings tab:
    • Ignore the Notification section.
    • Under Run command, paste your docker run command. Double-check to ensure all file paths and parameters are correct.

Docker Run Code

1
2
3
4
5
6
7
8
9
docker run -d --name=audiobookshelf \
-p 13378:80 \
-e PUID=1026 \
-e PGID=100 \
-v /volume1/docker/audiobookshelf:/config \
-v /volume1/docker/audiobookshelf/metadata:/metadata \
-v /volume1/data/media/audiobooks:/audiobooks \
--restart always \
advplyr/audiobookshelf

Please double-check your paths. You can also change the port number if required. Remember to visit the official guide as there may be extra features you can enable. Official Guide

  1. Click OK to save the task. You’ll be prompted to enter your Synology NAS password—enter it and press Submit.
  2. Back in the List of tasks, locate the task you just created.
  3. Select the task, then click Run from the top menu. When prompted to confirm, click OK.

Your task will now execute, setting up your Docker container. This process may take several minutes. You can now open your container by visiting:

yournasipaddress:13378. Audiobookshelf should now be up and running!


Docker Compose Code

If you’re comfortable with Docker Compose, you can use the following configuration to set up the installation for Audiobookshelf.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
version: '3.8'
services:
  audiobookshelf:
    image: advplyr/audiobookshelf
    container_name: audiobookshelf
    ports:
      - 13378:80
    environment:
      - PUID=1026
      - PGID=100
    volumes:
      - /volume1/docker/audiobookshelf:/config
      - /volume1/docker/audiobookshelf/metadata:/metadata
      - /volume1/data/media/audiobooks:/audiobooks
    restart: always
1
docker-compose up -d

Thanks for reading! 🎉🤘🎶

Thanks for stopping by! Don't forget to bookmark this site for future awesomeness! 🌟🔖👀

If you enjoy the site, feel free to tip me.

This post is licensed under CC BY 4.0 by the author.