• 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 General Questions Bind mounts on Ubuntu & Docker?

     
    • 0 Vote(s) - 0 Average

    Bind mounts on Ubuntu & Docker?

    4r5hw45twh
    Offline

    Member

    Posts: 132
    Threads: 31
    Joined: 2024 Mar
    Reputation: 0
    #5
    2025-01-19, 01:38 AM (This post was last modified: 2025-01-19, 01:46 AM by 4r5hw45twh. Edited 3 times in total.)
    (2025-01-19, 01:35 AM)theguymadmax Wrote: Fstab is the way to go.

    I made some edits in my above post. Not sure if you saw them before your reply was posted. Ok, so how does this look for my own compose file? From what you just said, I wouldn't need to mount each folder on the drive like I do in my below compose file?

    Code:
    services:
      jellyfin:
        image: jellyfin/jellyfin
        container_name: jellyfin
        user: 1000:1000
        network_mode: 'host'
        volumes:
          - /home/username/Dockers/Jellyfin/Config:/config
          - /home/username/Dockers/Jellyfin/Cache:/cache
          - type: bind
            source: /media/username/Media/Jellyfin/Anime
            target: /Anime
          - type: bind
            source: /media/username/Media/Jellyfin/TV Shows
            target: /TVShows
          - type: bind
            source: /media/username/Media/Jellyfin/Movies
            target: /Movies
            read_only: true
        restart: 'unless-stopped'

    So, if that's the case, I guess my final compose file would be:

    Code:
    services:
      jellyfin:
        image: jellyfin/jellyfin
        container_name: jellyfin
        user: 1000:1000
        network_mode: 'host'
        volumes:
          - /home/username/Dockers/Jellyfin/Config:/config
          - /home/username/Dockers/Jellyfin/Cache:/cache
          - type: bind
            source: /media/username/Media/Jellyfin
            target: /Media
            read_only: true
        restart: 'unless-stopped'
    ?

    I didn't see the "device" portion on the guide link that you have in your compose file. Do I need that?
    Also in the guide, I see, "To run the container in background add -d to the above command." Once I finally get a proper compose file, should I be adding the "-d" part or no?
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 12:47 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 01:00 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 01:17 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 01:35 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 01:38 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 01:52 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 02:05 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 02:26 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 02:29 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 02:32 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 02:43 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 02:55 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 02:57 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 03:01 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 03:05 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 03:17 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 03:19 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 03:23 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 03:31 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 03:36 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 03:46 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 03:54 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 03:57 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 03:41 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 03:59 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 04:04 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 04:09 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 04:14 AM
    RE: Bind mounts on Ubuntu & Docker? - by 4r5hw45twh - 2025-01-19, 04:22 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 04:21 AM
    RE: Bind mounts on Ubuntu & Docker? - by theguymadmax - 2025-01-19, 04:26 AM

    • 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