Go to stack in Portainer and add this in the web-editor and simply deploy

```version: "3.5"
services:
  jellyfin:
    image: jellyfin/jellyfin:latest
    container_name: jellyfin
    network_mode: "host"
    volumes:
      - /srv/docker-data/jellyfin:/config
      - /mnt/media:/media
    restart: unless-stopped

What this recipe means:

  • image: jellyfin/jellyfin: The software to download.

  • container_name: jellyfin: A simple name for the container.

  • network_mode: "host": This makes it easier for Jellyfin to auto-discover devices on your network (like a smart TV).

  • volumes:: This is the most important part.

    • - /srv/docker-data/jellyfin:/config: Links the config folder we just made to the container’s config folder.

    • - /mnt/media:/media: Links your 4TB media drive to the /media folder inside Jellyfin.

  • restart: unless-stopped: Automatically starts Jellyfin when you reboot the server.