I have setup Jellyfin in a Docker container with this stack script in Portainer on an Ubuntu 20.04 mini-PC.
version: “2.4”
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
environment:
- PUID=1000
- PGID=1000
- TZ=Pacific/Auckland
volumes:
- /home/john/jellyfin:/config
- /nfs/192.168.1.3/American:/mnt/American:ro
- /nfs/192.168.1.3/British:/mnt/British:ro
- /nfs/192.168.1.3/European:/mnt/European:ro
- /tmp:/tmp
ports:
- 8096:8096
- 8920:8920
devices:
- /dev/dri:/dev/dri
restart: unless-stopped
The NFS shares are mounted from an OMV NAS on the host system using autofs and the volume statements above refer to the host mounted paths.
I would like to mount these shares using the native Docker method. I have set the volumes up and can get it working by manually adding the volumes through Portainer but I would like to do so via a stack script as in above example. Preference is to keep to Portainer if possible.
Any help appreciated.