Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| services:audiobookshelf [2024/03/26 19:35] – created willy | services:audiobookshelf [2024/08/06 13:21] (current) – [Installation] willy | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| - 13378:80 | - 13378:80 | ||
| volumes: | volumes: | ||
| - | - /data/Media/ | + | - / |
| - | - /data/Media/ | + | - / |
| - / | - / | ||
| - | - /data/media/ | + | - / |
| environment: | environment: | ||
| - TZ=Europe/ | - TZ=Europe/ | ||
| Line 32: | Line 32: | ||
| Double check the various volumes to point to your media collection properly. Also set your TimeZone (TZ) appropriately. | Double check the various volumes to point to your media collection properly. Also set your TimeZone (TZ) appropriately. | ||
| + | Now ensure your folders do exist: | ||
| + | <code bash> | ||
| + | mkdir / | ||
| + | mkdir / | ||
| + | mkdir / | ||
| + | chown audiobookshelf: | ||
| + | su - audiobookshelf | ||
| + | mkdir config | ||
| + | </ | ||
| + | |||
| + | And then pull the images: | ||
| + | <code bash> | ||
| + | su - audiobookshelf | ||
| + | podman compose pull | ||
| + | </ | ||
| + | |||
| + | ===== Reverse Proxy ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | This is my recomended one for NGINX: | ||
| + | <file - audiobookshelf.conf> | ||
| + | server { | ||
| + | server_name podcast.gardiol.org; | ||
| + | listen 8443 ssl; # external access | ||
| + | listen 443 ssl; # internal access | ||
| + | |||
| + | access_log / | ||
| + | error_log / | ||
| + | |||
| + | location / { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | } | ||
| + | |||
| + | include org.certbot.conf; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Unfortunately AudioBookShelf at this time does not support yet sub-paths, so you will need to host it on a subdomain. | ||
| + | |||
| + | ===== Autostart ===== | ||
| + | |||
| + | To start it, and set it up on boot, as usual follow my indications [[gentoo: | ||
| + | < | ||
| + | ln -s / | ||
| + | </ | ||
| + | |||
| + | and create the following config file: | ||
| + | <file - / | ||
| + | USER=audiobookshelf | ||
| + | DESCRIPTION=" | ||
| + | </ | ||
| + | |||
| + | Add the service to the default runlevel and start it now: | ||
| + | <code bash> | ||
| + | rc-update add user-containers.audiobookshelf default | ||
| + | rc-service user-containers.audiobookshelf start | ||
| + | </ | ||
| + | |||
| + | ===== Upgrade ===== | ||
| + | |||
| + | Since it's using pdoman, stop the service then, as user **audiobookshelf**, | ||
| + | <code bash> | ||
| + | podman compose pull | ||
| + | </ | ||
| + | |||
| + | and restart the service. | ||