diff --git a/jellyfin/docker-compose.yml b/jellyfin/docker-compose.yml index 1d8de2e..556cf8e 100644 --- a/jellyfin/docker-compose.yml +++ b/jellyfin/docker-compose.yml @@ -1,25 +1,15 @@ services: jellyfin: image: jellyfin/jellyfin:latest - user: "${UID:-1000}:${GID:-1000}" - network_mode: 'host' + user: "${UID:-1000}:${GID:-1000}" # Optional: Benutzer-ID und Gruppen-ID + ports: + - "${JELLYFIN_PORT:-8096}:8096" volumes: - - ${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' + - "${CONFIG_DIR:-./config}:/config" + - "${CACHE_DIR:-./cache}:/cache" + - "${MOVIES_DIR}:/media" + - "${SERIES_DIR}:/media" + restart: unless-stopped environment: - - JELLYFIN_PublishedServerUrl=${JELLYFIN_URL} - TZ=${TZ:-Europe/Berlin} - extra_hosts: - - 'host.docker.internal:host-gateway' + - JELLYFIN_PublishedServerUrl=${JELLYFIN_URL} \ No newline at end of file