version: "3.8"

services:
  jellyfin:
    image: jellyfin/jellyfin:latest
    container_name: jellyfin
    network_mode: host
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - ./config:/config
      - ./cache:/cache
      - ./media:/media
      - ./movies:/media/movies
      - ./tvshows:/media/tvshows
      - ./live-tv:/media/live-tv
    restart: unless-stopped
