mirror of
https://github.com/DoTheEvo/selfhosted-apps-docker.git
synced 2026-11-11 01:10:08 +01:00
update
This commit is contained in:
1 parent
a717a617ff
commit
2ab0d4f46e
1 file changed
+37
-81
+37
-81
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
###### guide-by-example
|
###### guide-by-example
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
# Purpose & Overview
|
# Purpose & Overview
|
||||||
|
|
||||||
@@ -15,66 +15,62 @@ Selfhosted audiobook library.
|
|||||||
* [Official site](https://www.audiobookshelf.org/)
|
* [Official site](https://www.audiobookshelf.org/)
|
||||||
* [Github](https://github.com/advplyr/audiobookshelf)
|
* [Github](https://github.com/advplyr/audiobookshelf)
|
||||||
|
|
||||||
Jellyfin if a free media system, an alternative to proprietary Plex.<br>
|
Opensource. Able to download the books localy. Written in javascript.
|
||||||
The core server side is written in C#, web client in Javascript,
|
|
||||||
and a number of other clients written in various languages and frameworks.
|
|
||||||
|
|
||||||
Starting point for me was [this viggy96 repo](https://github.com/viggy96/container_config)
|
# Client apps
|
||||||
|
|
||||||
|
* android - [audiobookshelf-app](https://github.com/advplyr/audiobookshelf-app)
|
||||||
|
* ios - [plappa](https://apps.apple.com/us/app/plappa/id6475201956),
|
||||||
|
unless [the official one](https://github.com/advplyr/audiobookshelf-app) is out of beta
|
||||||
|
|
||||||
# Files and directory structure
|
# Files and directory structure
|
||||||
|
|
||||||
```
|
```
|
||||||
/mnt/
|
/mnt/
|
||||||
└── bigdisk/
|
└── bigdisk/
|
||||||
├── tv/
|
└── audiobooks/
|
||||||
├── movies/
|
|
||||||
└── music/
|
|
||||||
/home/
|
/home/
|
||||||
└── ~/
|
└── ~/
|
||||||
└── docker/
|
└── docker/
|
||||||
└── jellyfin/
|
└── audiobookshelf/
|
||||||
├── jellyfin-cache/
|
├── config/
|
||||||
├── jellyfin-config/
|
├── metadata/
|
||||||
├── transcodes/
|
|
||||||
├── .env
|
├── .env
|
||||||
└── docker-compose.yml
|
└── compose.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
* `/mnt/bigdisk/...` - a mounted media storage share
|
* `/mnt/bigdisk/...` - a mounted media storage share
|
||||||
* `jellyfin-cache/` - cache
|
* `config/` - persistent configuration
|
||||||
* `jellyfin-config/` - configuration
|
* `metadata/` - metadata
|
||||||
* `transcodes/` - transcoded video storage
|
|
||||||
* `.env` - a file containing environment variables for docker compose
|
* `.env` - a file containing environment variables for docker compose
|
||||||
* `docker-compose.yml` - a docker compose file, telling docker how to run the containers
|
* `compose.yml` - a docker compose file, telling docker how to run the containers
|
||||||
|
|
||||||
You only need to provide the two files.</br>
|
You only need to provide the two files.</br>
|
||||||
The directories are created by docker compose on the first run.
|
The directories are created by docker compose on the first run.
|
||||||
|
|
||||||
# docker-compose
|
# compose
|
||||||
|
|
||||||
The media are mounted in read only mode.
|
Port is only exposed, meaning it's just documentation to know that
|
||||||
|
it's running on port 80. Reverse proxy is expected so thats why not
|
||||||
|
really needed opening ports.
|
||||||
|
|
||||||
`docker-compose.yml`
|
|
||||||
|
`compose.yml`
|
||||||
```yml
|
```yml
|
||||||
services:
|
services:
|
||||||
|
|
||||||
jellyfin:
|
audiobookshelf:
|
||||||
image: jellyfin/jellyfin:latest
|
image: ghcr.io/advplyr/audiobookshelf
|
||||||
container_name: jellyfin
|
container_name: audiobookshelf
|
||||||
hostname: jellyfin
|
hostname: audiobookshelf
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
devices:
|
|
||||||
- /dev/dri
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./transcodes/:/transcodes
|
- ./config:/config
|
||||||
- ./jellyfin-config:/config
|
- ./metadata:/metadata
|
||||||
- ./jellyfin-cache:/cache
|
- /mnt/bigdisk/audiobooks:/mnt/audiobooks
|
||||||
- /mnt/bigdisk/serialy:/media/video:ro
|
expose:
|
||||||
- /mnt/bigdisk/mp3/moje:/media/music:ro
|
- "80"
|
||||||
ports:
|
|
||||||
- "8096:8096"
|
|
||||||
- "1900:1900/udp"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
@@ -87,6 +83,8 @@ networks:
|
|||||||
# GENERAL
|
# GENERAL
|
||||||
DOCKER_MY_NETWORK=caddy_net
|
DOCKER_MY_NETWORK=caddy_net
|
||||||
TZ=Europe/Bratislava
|
TZ=Europe/Bratislava
|
||||||
|
PUID=1000
|
||||||
|
PGID=1000
|
||||||
```
|
```
|
||||||
|
|
||||||
**All containers must be on the same network**.</br>
|
**All containers must be on the same network**.</br>
|
||||||
@@ -100,65 +98,23 @@ Caddy is used, details
|
|||||||
|
|
||||||
`Caddyfile`
|
`Caddyfile`
|
||||||
```
|
```
|
||||||
jellyfin.{$MY_DOMAIN} {
|
books.{$MY_DOMAIN} {
|
||||||
reverse_proxy jellyfin:8096
|
reverse_proxy audiobookshelf:80
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
# First run
|
# First run
|
||||||
|
|
||||||
|
|
||||||

|
...
|
||||||
|
|
||||||
|
# Library organization
|
||||||
|
|
||||||
|
|
||||||
# Specifics of my setup
|
|
||||||
|
|
||||||
* no long term use yet
|
|
||||||
* amd cpu and no gpu, so no experience with hw transcoding
|
|
||||||
* media files are stored and shared on trunas scale VM
|
|
||||||
and mounted directly on the docker host using [systemd mounts](https://forum.manjaro.org/t/root-tip-systemd-mount-unit-samples/1191),
|
|
||||||
instead of fstab or autofs.
|
|
||||||
|
|
||||||
`/etc/systemd/system/mnt-bigdisk.mount`
|
|
||||||
```ini
|
|
||||||
[Unit]
|
|
||||||
Description=12TB truenas mount
|
|
||||||
|
|
||||||
[Mount]
|
|
||||||
What=//10.0.19.19/Dataset-01
|
|
||||||
Where=/mnt/bigdisk
|
|
||||||
Type=cifs
|
|
||||||
Options=ro,username=ja,password=qq,file_mode=0700,dir_mode=0700,uid=1000
|
|
||||||
DirectoryMode=0700
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
```
|
|
||||||
|
|
||||||
`/etc/systemd/system/mnt-bigdisk.automount`
|
|
||||||
```ini
|
|
||||||
[Unit]
|
|
||||||
Description=12TB truenas mount
|
|
||||||
|
|
||||||
[Automount]
|
|
||||||
Where=/mnt/bigdisk
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
```
|
|
||||||
|
|
||||||
to automount on boot - `sudo systemctl enable mnt-bigdisk.automount`
|
|
||||||
|
|
||||||
# Troubleshooting
|
# Troubleshooting
|
||||||
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
*We're unable to connect to the selected server right now. Please ensure it is running and try again.*
|
|
||||||
|
|
||||||
If you encounter this, try opening the url in browsers private window.<br>
|
|
||||||
If it works then clear the cookies in your browser.
|
|
||||||
|
|
||||||
|
|
||||||
# Update
|
# Update
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user