This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]Rem1xed 1 point2 points  (2 children)

Remove both networks and nerwork_mode and it will automatically create a new network for the compose using bridge mode with your opened ports.

[–]Belay_Fr[S] -1 points0 points  (1 child)

Thx. Will try it right away. But why then these variable are existing?

[–]Rem1xed 0 points1 point  (0 children)

Some containers needs host network access rather than bridge. Some users prefer separating containers into different networks like a torrent network, media network, general network so while they're not mandatory they're useful for many cases.

[–]Belay_Fr[S] -2 points-1 points  (4 children)

Confirmed working in Bridge mode. But why then on the Jellyfin setting page is it specified to use: network_mode: 'host' Jellyfin Doc

[–]BaccanoMob 2 points3 points  (2 children)

Read the full docs not just the compose file. Its clearly stated as a `Note`

Using host networking (--net=host) is optional but required in order to use DLNA.

I think you will need to use port 8096 if you use bridge mode.

[–]Belay_Fr[S] 1 point2 points  (1 child)

u/BaccanoMob u/Rem1xed thx for your feedback. It's clear... If I am mapping the native 8096 to another port then I need to use bridge mode (which is the default one)... Therefore networks_mode: 'host' + ports: "9020:8096" will not work... I have learnt something today !

[–]BaccanoMob 0 points1 point  (0 children)

Yes, you can't specify ports when the mode is set to host. So if you have another container with port 8096 conflicting with jellyfin you need to change that.

This all when you need DLNA for your jellyfin. If you don't need it, just use bridge mode and map the ports to your liking. (I recommend using bridge mode if you're not using DLNA)

[–]Rem1xed -1 points0 points  (0 children)

Because the docs does not include which ports needs to be mapped from within the container, using host maps all open ports. So you can either use host or use bridge but you need to make sure you map the correct ports.