diff --git a/jellyfin/docker-compose.yml b/jellyfin/docker-compose.yml index 0413f87..1d8de2e 100644 --- a/jellyfin/docker-compose.yml +++ b/jellyfin/docker-compose.yml @@ -1,14 +1,25 @@ services: jellyfin: image: jellyfin/jellyfin:latest - user: "${UID:-1000}:${GID:-1000}" # Optional: Benutzer-ID und Gruppen-ID - ports: - - "${JELLYFIN_PORT:-8096}:8096" + user: "${UID:-1000}:${GID:-1000}" + network_mode: 'host' volumes: - - "${CONFIG_DIR:-./config}:/config" - - "${CACHE_DIR:-./cache}:/cache" - - "${MOVIES_DIR}:/media" - - "${SERIES_DIR}:/media2" - restart: unless-stopped + - ${CONFIG_DIR:-/srv/jellyfin/config}:/config + - ${CACHE_DIR:-/srv/jellyfin/cache}:/cache + - type: bind + source: ${MOVIES_DIR:-/mnt/media1} + target: /media + - type: bind + source: ${SERIES_DIR:-/mnt/media2} + target: /media2 + read_only: true + - type: bind + source: ${FONTS_DIR:-/usr/share/fonts/custom} + target: /usr/local/share/fonts/custom + read_only: true + restart: 'unless-stopped' environment: + - JELLYFIN_PublishedServerUrl=${JELLYFIN_URL} - TZ=${TZ:-Europe/Berlin} + extra_hosts: + - 'host.docker.internal:host-gateway'