• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Guides, Walkthroughs & Tutorials Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose

     
    • 1 Vote(s) - 5 Average

    Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose

    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,168
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #1
    2023-12-31, 05:53 PM (This post was last modified: 2025-01-29, 03:53 PM by Efficient_Good_5784. Edited 9 times in total.)
    This will be a short guide for Synology NAS units running DSM 7 on how to run a Jellyfin container using the Container Manager program.

    Synology's DSM update to v7 updated the Docker program to what it is now, the Container Manager. Here, you can upload/write YAML files to launch a container.
    If you don't have Container Manager on your NAS, install it through the Package Center.

    In the Container Manager, you can select from multiple views:
    • Overview: Self-explanatory
    • Project: Place to create projects using compose files
    • Container: List of all existing containers and their current status
    • Image: List of Docker images currently stored on your NAS
    • Registry: Place to find and download Docker images
    • Network: List of networks and their current status
    • Log: Self-explanatory

    We'll be using the Project view to run Jellyfin with a compose YAML file.

    Note: I'll go over how to set-up the compose YAML file at the end.

    Now on to the guide:
    1. Open File Station.
    2. In the "docker" folder, create a folder named "jellyfin" (note: you can choose where to save this, you're not forced to store this in "docker").
    3. In the "jellyfin" folder, create two folders: "cache" & "config".
    4. Using a text editor, create a compose file on your computer (instructions at end of guide).
    5. Open Container Manager's Project view.
    6. Create a new project.
    7. Give the project a name.
    8. For the path, click on "Set Path" and select the "jellyfin" folder you created in step 2 (you'll get a "compose.yaml" file stored in this location when this project is created).
    9. For source, select the "Upload docker-compose.yaml" option, then click on browse to upload your compose file.
    10. You'll see a view of your compose file from which you can still edit it. Just click next a couple of times, then click on "done".
    11. If you unselected the last option in step 10 to not start the project immediately after creation, right-click on the project and then on build.
    12. A pop-up will appear. The Docker image specified in the compose file will start downloading if it's not present on your NAS.
    13. The pop-up will end with an exit code (0=no errors).
    14. You should now have a running Jellyfin instance that you can access by going to a browser and opening "[your-nas-IP]:[port-chosen]"

    The following is how the compose YAML file should be written.
    Just copy and paste this into a text editor, edit it, then make sure to save it with a .yaml file extension. As in, you can save this to a .txt file, then just rename the text file from .txt to .yaml.

    Comments in a YAML file are preceded with "#". Deleting the # symbol will make the line apply when you run the compose file.
    Notes:
    • PUID = Process User ID
    • PGID = Process Group ID
    • User ID and Group ID of 0 is root (omitting both PUID and PGID will also make the container run through root)
    • Following the previous steps, this compose file already links to the cache and config folders that we created.
    • If your Synology NAS has an iGPU, make sure to uncomment the device section to allow for HWA.
    • The TZ environment variable will determine if Jellyfin's tasks run correctly at your selected times.
    • For your media folders, replace "path-to-folder" with the folders leading to your media files.
    • I added some comments to the example compose file. You can remove them later if you want to clean this up for your personal use.
    • The code block in this forum makes the compose file have double-line spacing. You can delete these too if you want to make it more compact.
    Code:
    services:
      jellyfin:
        #for specific image-> image: jellyfin/jellyfin:10.8.13
        image: jellyfin/jellyfin:latest
        container_name: Jellyfin
        environment:
          #- PUID=0
          #- PGID=0
          - TZ=America/Los_Angeles
          #- JELLYFIN_PublishedServerUrl=192.168.1.#
          #note: change TZ to your timezone identifier: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
        volumes:
          - /volume1/docker/jellyfin/cache:/cache:rw
          - /volume1/docker/jellyfin/config:/config:rw
          #- /volume1/<path-to-folder>/shows:/shows:rw
          #- /volume1/<path-to-folder>/movies:/movies:ro
          #note: (:rw = read/write) & (:ro = read only)
        #devices:
          #- /dev/dri/renderD128:/dev/dri/renderD128
          #- /dev/dri/card0:/dev/dri/card0
          #note: uncomment these lines in devices to allow for HWA to work on Synology units with an iGPU
        ports:
          - 8096:8096/tcp
          #- <port-to-use>:8096/tcp
        network_mode: bridge
        #network_mode: host
        restart: unless-stopped
    Note: You can also choose to copy this directly when creating a project by selecting the "Create docker-compose.yml" option for source.

    Also check out the Official Jellyfin documentation about Docker Compose: https://jellyfin.org/docs/general/instal...er-compose

    After all this, you should end up with a project in Container Manager's Project view and a running container.
    You can now open the project to view its details.
    Here, you can modify the YAML configuration it uses (the project needs to be stopped first to edit it).
    You'll be able to add/remove media folders or even select a specific Jellyfin Docker image from here in the future.

    Also as a final note, in the Project view:
    • Build: Create the container
    • Clean: Delete the present container

    If somebody finds an error with this, let me know and I'll update this.
    ‐---------------------
    Edit:

    I forgot to mention this originally. For those unaware, I want to point out that we created an external location from the container where the config folder is stored and used.

    Deleting containers will not delete any external volumes/folders you linked to it, just what's inside the container itself.

    This means that if you delete the Jellyfin container, your config folder will be retained. As long as you keep this external config folder, you can reuse it for future Jellyfin updates to carry over your entire server settings, playlists, watched history, metadata, etc. The only thing that won't transfer over with just the config folder alone is metadata stored along with your media files.
    ‐---------------------
    Edit 2: Added a link to the Jellyfin Docs about Docker Compose.
    ‐---------------------
    Edit 3: Clarified the "JELLYFIN_PublishedServerUrl" option in the compose file example.
    ----------------------
    Edit 4: Another thing I want to point. When you edit the compose file with new changes, the changes will not apply to the current container until it's destroyed and rebuilt. When you edit the compose file within Container Manager, it gives you the option of rebuilding the container straight away, or just to save the file. If you save the file only, make sure to rebuild it later for your changes to apply.
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Efficient_Good_5784 - 2023-12-31, 05:53 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by denmalley - 2024-02-02, 01:42 AM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Efficient_Good_5784 - 2024-02-02, 03:58 AM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by bitmap - 2024-02-02, 07:18 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by denmalley - 2024-02-03, 02:43 AM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Kurt - 2024-05-29, 06:20 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Efficient_Good_5784 - 2024-05-29, 06:52 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Kurt - 2024-05-29, 07:09 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Efficient_Good_5784 - 2024-05-29, 08:03 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Kurt - 2024-05-29, 08:25 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by xyu - 2024-09-16, 05:32 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Efficient_Good_5784 - 2024-12-21, 04:42 AM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by TheDreadPirate - 2024-05-29, 06:40 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Efficient_Good_5784 - 2024-05-29, 09:43 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Kurt - 2024-05-29, 11:28 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Haxornator - 2024-06-18, 07:05 AM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by TheDreadPirate - 2024-06-18, 02:31 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by XavierP56 - 2024-09-03, 06:08 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by quecup - 2024-11-17, 04:25 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Efficient_Good_5784 - 2024-12-21, 04:49 AM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by scavenger1801 - 2025-03-01, 07:18 AM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Efficient_Good_5784 - 2025-03-01, 05:07 PM
    RE: Guide: Running Jellyfin in Synology's DSM 7 Using Docker Compose - by Goby - 2025-03-09, 02:53 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode