name: jellyfin
services:
  jellyfin:
    devices:
      - /dev/dri:/dev/dri
      - /dev/vcsm:/dev/vcsm
      - /dev/vchiq:/dev/vchiq
      - /dev/video10:/dev/video10
      - /dev/video11:/dev/video11
      - /dev/video12:/dev/video12
    environment:
      JELLYFIN_PublishedServerUrl: $APP_IPV4
      PGID: $PGID
      PUID: $PUID
      TZ: $TZ
    image: linuxserver/jellyfin:10.8.9
    deploy:
      resources:
        reservations:
          memory: "256M"
    network_mode: bridge
    ports:
      - target: 8096
        published: "8096"
        protocol: tcp
      - target: 8920
        published: "8920"
        protocol: tcp
      - target: 7359
        published: "7359"
        protocol: tcp
      - target: 1900
        published: "1900"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/$AppID/config
        target: /config
      - type: bind
        source: /DATA/Media
        target: /Media
      - type: bind
        source: /opt/vc/lib
        target: /opt/vc/lib
    x-casaos:
      author: CasaOS Team
      category: Media
      container:
        envs:
          - container: TZ
            description:
              en_US: TimeZone
              zh_CN: 时区
          - container: PUID
            description:
              en_US: Run Jellyfin as specified uid.
              zh_CN: Jellyfin运行的用户ID
          - container: PGID
            description:
              en_US: Run Jellyfin as specified gid.
              zh_CN: Jellyfin运行的用户组ID
          - container: JELLYFIN_PublishedServerUrl
            description:
              en_US: The autodiscovery response domain or IP address.
              zh_CN: 自动发现响应域名或IP地址
        index: /
        port_map: "8096"
        ports:
          - container: "8096"
            description:
              en_US: WebUI HTTP Port
              zh_CN: WebUI HTTP端口

          - container: "8920"
            description:
              en_US: WebUI HTTPS Port
              zh_CN: WebUI HTTPS端口

          - container: "7359"
            description:
              en_US: Jellyfin auto-discovery Port
              zh_CN: Jellyfin自动发现端口

          - container: "1900"
            description:
              en_US: Jellyfin DLNA Port
              zh_CN: Jellyfin DLNA端口

        volumes:
          - container: /config
            description:
              en_US: Jellyfin config directory.
              zh_CN: Jellyfin配置目录
          - container: /Media
            description:
              en_US: Jellyfin Media directory.
              zh_CN: Jellyfin媒体目录
          - container: /opt/vc/lib
            description:
              en_US: OpenMax libs
              zh_CN: OpenMax库
      description:
        en_US: Jellyfin enables you to collect, manage, and stream your media. Run the Jellyfin server on your system and gain access to the leading free-software entertainment system, bells and whistles included.
        zh_CN: Jellyfin让您可以收集、管理和流媒体。在您的系统上运行Jellyfin服务器，即可获得免费软件娱乐系统的领先功能，包括铃声和装饰。
      developer: Jellyfin
      icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Jellyfin/icon.png
      screenshot_link:
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Jellyfin/screenshot-1.jpg
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Jellyfin/screenshot-2.jpg
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Jellyfin/screenshot-3.jpg
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Jellyfin/screenshot-4.jpg
        - https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Jellyfin/screenshot-5.jpg
      tagline:
        en_US: Puts you in control of your media.
        zh_CN: 让您控制媒体。
      thumbnail: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Jellyfin/thumbnail.png
      tips: {}
      title:
        en_US: Jellyfin
x-casaos:
  architectures:
    - amd64
    - arm
    - arm64
  main_app: jellyfin
