Updating Jellyfin on the Synology NAS: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
=== 2. Pull and recreate === | === 2. Pull and recreate === | ||
<pre> | <pre> | ||
sudo docker compose pull | sudo docker compose -p jellyfin -f /volume1/docker/projects/jellyfin-compose/compose.yaml pull | ||
sudo docker compose up -d | sudo docker compose -p jellyfin -f /volume1/docker/projects/jellyfin-compose/compose.yaml up -d | ||
</pre> | </pre> | ||
Latest revision as of 19:34, 4 October 2026
Jellyfin runs as the linuxserver image (lscr.io/linuxserver/jellyfin:latest) via Docker Compose. Config lives at /volume1/docker/jellyfin, so recreating the container with a new image keeps all settings and library data.
1. Back up the config
SSH into the NAS and copy the config folder next to the original. Jellyfin sometimes runs database migrations on upgrade, and those can't easily be rolled back. The cache folder does not need a backup.
sudo cp -a /volume1/docker/jellyfin /volume1/docker/jellyfin-backup-$(date +%F)
2. Pull and recreate
sudo docker compose -p jellyfin -f /volume1/docker/projects/jellyfin-compose/compose.yaml pull sudo docker compose -p jellyfin -f /volume1/docker/projects/jellyfin-compose/compose.yaml up -d
pulldownloads the newest image.up -ddetects the new image and recreates the container with the same settings. Config, cache, and media mounts are untouched.
3. Verify
sudo docker logs -f jellyfin
Wait for startup messages to settle (Ctrl+C to exit), then open http://mille.cam:8096 and check the version under Dashboard.
Note: The first start after a big version jump can take a few minutes while the database migrates. Do not restart the container during this.
4. Clean up (optional)
sudo docker image prune
This removes the old image to free disk space.
Notes
- Hardware transcoding: The
/dev/drimapping is already in the compose file, so transcoding should keep working. If it stops, check the device exists on the host withls -l /dev/dri. - Container Manager alternative: If the project was created in Synology's Container Manager, you can update from the Project tab: stop the project, then use Action > Build to pull and recreate.
- Writable mount:
/volume1/Media/dvris the only media mount that is not read-only.
Rollback
If something goes wrong:
- Stop the container:
sudo docker compose down - Move the backup folder back into place at
/volume1/docker/jellyfin - Start it again:
sudo docker compose up -d
Reference compose file
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
devices:
- /dev/dri:/dev/dri
environment:
- JELLYFIN_PublishedServerUrl=http://mille.cam
- PUID=1031
- PGID=65537
- TZ=America/Denver
- UMASK=022
volumes:
- /volume1/docker/jellyfin:/config
- /volume1/Media/Movies:/data/movies:ro
- /volume1/Media/Church:/data/church:ro
- "/volume1/Media/Home Videos:/data/home_videos:ro"
- "/volume1/Media/TV Shows:/data/tv_shows:ro"
- /volume1/docker/jellyfin-cache:/cache
- /volume1/Media/dvr:/data/dvr
ports:
- "8096:8096"
network_mode: bridge
security_opt:
- no-new-privileges:true
restart: unless-stopped