• 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 Most Optimal JF/Docker Setup on Linux for Local & Non-Local Use?

     
    • 0 Vote(s) - 0 Average

    Most Optimal JF/Docker Setup on Linux for Local & Non-Local Use?

    4r5hw45twh
    Offline

    Member

    Posts: 132
    Threads: 31
    Joined: 2024 Mar
    Reputation: 0
    #1
    2025-01-21, 11:05 PM
    What is the most simplistic, optimal setup one could have so that everything just flows nicely and
    would have the least amount of headaches to fix issue(s) if they happened?

    The goal I personally wanted to achieve:
    Access JF & JS on my home devices (Firestick, phone, etc.) using the server's local IP address for JF/JS.
    Access JF & JS when not home through my domain name.

    My setup is:
    -Domain name with Cloudflare pointing to my server's public IP.
    -Docker has NPM, JF, & Jellyseerr (JS) in it and is managed by NPM.
    -NPM's proxy host IP for JF is the server's native local IP instead of "jellyfin".
    -JF docker compose file has these ports in it: 7359, 1900, and 8096
    -Each docker compose file for each program in Docker ends with the custom network name I gave them (should I make these all "--net=host" instead?)
    -Regarding VPN, I use ProtonVPN but I only want it On for qBittorrent. Cannot figure this out yet.


    If a professional Linux, Docker, or NPM user/dev saw my setup and how it's configured, what could be optimized/changed?
    Would they be like, "nah, change those custom network names on the docker compose files and just make them all host. Then do X differently to achieve Y by Z method" or what?
    The point of this thread is to not only achieve a better setup for myself and my needs, but spark discussion in general on optimal setups.
    bitmap
    Offline

    Community Moderator

    Posts: 755
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #2
    2025-01-22, 12:40 AM
    Seems straightforward enough. A rule of thumb is to avoid giving additional permissions to containers if they're not needed. I call it the tenet of least access. If these are working without providing access to the host network, there's no need to do so. I have one container with host networking enabled: Pi-hole. All of the others use bridge network (not an amazing practice, but not super harmful). Not sure we have any professional Docker folks here, but most of us who use Docker have similar setups.

    Code:
    -p 7359/udp    Optional - Allows clients to discover Jellyfin on the local network.
    -p 1900/udp    Optional - Service discovery used by DNLA and clients.

    You could add your server's IP to the beginning of these if you want to clamp down a little more, but it's not really a huge deal. Another thing you could do is utilize non-standard ports for things so that nobody can scan through and find a Jellyfin instance. You're a relatively low-end target, so again it's not really a big deal.
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    4r5hw45twh
    Offline

    Member

    Posts: 132
    Threads: 31
    Joined: 2024 Mar
    Reputation: 0
    #3
    2025-01-22, 10:14 PM
    (2025-01-22, 12:40 AM)bitmap Wrote: If these are working without providing access to the host network, there's no need to do so. I have one container with host networking enabled: Pi-hole. All of the others use bridge network (not an amazing practice, but not super harmful).

    Good to know in a general sense. My reasoning for having the ports on my JF container is so that I could access JF via "localhost:IP" on the native machine, which I couldn't normally do since JF is in Docker, which the native machine can't do a "localhost" into (as far as I know, at least). So I was talking to DreadPirate in another thread and we came to that solution. if there's a better/simpler/more secure way, I'm all ears, though.
    bitmap
    Offline

    Community Moderator

    Posts: 755
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #4
    2025-01-22, 11:57 PM
    TDP has a good grasp, I have no reason to doubt that solution. You may look at how you could set up a local domain, since you could do something like "server-name.lan:8096" and have the same result. With eero, that's automatic, which is surprising.
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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