version: "2"
services:
  jellyfin:
    image: jellyfin/jellyfin:latest
    container_name: Jellyfin
    environment:
    - TZ=Europe/Warsaw
    - PGID=1026
    - PUID=100
    - JELLYFIN_DATA_DIR=/shared_config
    - JELLYFIN_CACHE_DIR=/shared_cache
    - JELLYFIN_CONFIG_DIR=/shared_config/config
    - JELLYFIN_LOG_DIR=/shared_config/log
    volumes:
      - /volume1/docker/jellyfinhw/config:/shared_config
      - /volume1/docker/jellyfinhw/cache:/shared_cache
      - /volume1/video:/data/media
      - /volume1/music:/data/music
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped
    network_mode: host