• 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 Docker network_mode

     
    • 0 Vote(s) - 0 Average

    Docker network_mode

    host vs bridge
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-04-06, 03:29 PM
    In terms of performance and connection stability, the only issues I've seen from other users is when paired with a reverse proxy that is also in a container.  When your reverse proxy is also using bridge networking, you should not also publish port 8096 for Jellyfin.  This results in excessive "context switching" between the bridge network and the host network.  Not sure if that is that is the right term.

       

    But this is OK.

       

    If your reverse proxy is NOT a container, but runs directly on the host, the second image would result in pretty much the same thing.  But would require you use "expose" for port 8096, which is similar to port forwarding on your router.

    Code:
        expose:
          - 8096

    The idea is to reduce how many hops in and out of the bridge network your traffic makes.

    But, I've only seen the first image cause connection stability issues for some users.  I don't think there is a performance issue.  No additional CPU overhead or limited throughput.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Docker network_mode - by _Nick - 2025-04-06, 01:53 PM
    RE: Docker network_mode - by TheDreadPirate - 2025-04-06, 03:29 PM
    RE: Docker network_mode - by _Nick - 2025-04-12, 06: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