Skip to content

Instantly share code, notes, and snippets.

@ECiurleo
Last active February 26, 2024 22:59
Show Gist options
  • Save ECiurleo/472273c35e9ec184b72fe285a88fa428 to your computer and use it in GitHub Desktop.
Save ECiurleo/472273c35e9ec184b72fe285a88fa428 to your computer and use it in GitHub Desktop.
audiobookshelf setup for Raspberry Pi - Raspbian GNU/Linux 11 (bullseye)
audiobookshelf setup for Raspberry Pi - Raspbian GNU/Linux 11 (bullseye)
version: '3.7'
services:
audiobookshelf:
container_name: audiobookshelf
#last image with armv7 support (pi)
image: advplyr/audiobookshelf:2.7.2
# You can use the following environment variable to run the ABS
# docker container as a specific user. You will need to change
# the UID and GID to the correct values for your user.
environment:
- AUDIOBOOKSHELF_UID=99
- AUDIOBOOKSHELF_GID=100
# ABS runs on port 13378 by default. If you want to change
# the port, only change the external port, not the internal port
ports:
- 13378:80
# These volumes are needed to keep your library persistent
# and allow media to be accessed by the ABS server.
# The path to the left of the colon is the path on your computer,
# and the path to the right of the colon is where the data is
# available to ABS in Docker.
# You can change these media directories or add as many as you want
volumes:
- ./audiobooks:/audiobooks
- ./podcasts:/podcasts
# The config directory needs to be on the same physical machine you are running ABS on
- ./config:/config
# The metadata directory can be stored anywhere on your computer
- ./metadata:/metadata
#Restart it if it stops
restart: unless-stopped
#!/bin/bash
# Update and upgrade system
sudo apt update && sudo apt upgrade -y
# Install Apache
sudo apt install -y apache2
# Install Certbot
sudo add-apt-repository -y ppa:certbot/certbot
sudo apt update
sudo apt install -y python3-certbot-apache
# Install Docker
sudo apt install -y docker.io
# Add current user to the docker group
sudo usermod -aG docker $USER
# Start and enable Docker service
sudo systemctl start docker
sudo systemctl enable docker
# Install Docker Compose
sudo apt install -y docker-compose
# Create directories for Bookshelf
cd Bookshelf
mkdir -p audiobooks podcasts config metadata
# Pull Docker images
docker-compose pull
# Start Docker containers
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment