User Tools

This is an old revision of the document!


Audio Book Shelf

AudioBookShelf is a Self-hosted audiobook and podcast server.

Installation

It is possible to install ABS on bare-metal. They provide prebuilt packages for Debian, Redhat/CentOS and NixOS. But i am on Gentoo, so i decided against downloading a deb or an rpm package but go the containers way instead.

As usual, you need to create the audiobookshelf user but be careful to assign it to the media group so that it can access all the audiobooks and podcasts of your collection,:

useradd -d /data/daemons/audiobookshelf -m -g media audiobookshelf

Then, as user audiobookshelf, create the following docker compose yaml (see here):

docker-compose.yml
version: "3.7"
services:
  audiobookshelf:
    image: ghcr.io/advplyr/audiobookshelf:latest
    ports:
      - 13378:80
    volumes:
      - /data/Audiobooks/:/audiobooks
      - /data/Podcasts:/podcasts
      - /data/daemons/audiobookshelf/config:/config
      - /data/Metadata:/metadata
    environment:
      - TZ=Europe/Rome

Set a proper port (13378)for your needs, one that is free from all your other services. Double check the various volumes to point to your media collection properly. Also set your TimeZone (TZ) appropriately.

Now ensure your folders do exist:

mkdir /data/Podcasts
mkdir /data/Audiobooks
mkdir /data/Metadata
chown audiobookshelf:media -R /data/Podcasts /data/Audiobooks /data/Metadata
su - audiobookshelf
mkdir config

And then pull the images:

su - audiobookshelf podman compose pull
 

Reverse Proxy

Autostart

To start it, and set it up on boot, as usual follow my indications Using Containers on Gentoo, so link the user-containers init script:

ln -s /etc/init.d/user-containers /etc/init.d/user-containers.audiobookshelf

and create the following config file:

/etc/conf.d/user-containers.audiobookshelf
USER=audiobookshelf
DESCRIPTION="The audiobooks and podcast server"

Add the service to the default runlevel and start it now:

rc-update add user-containers.audiobookshelf default
rc-service user-containers.audiobookshelf start

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information