Jellyfin Forum
Discovery on docker - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Discovery on docker (/t-discovery-on-docker)



Discovery on docker - Eric Mako - 2024-08-24

Hello, I used the JELLYFIN_PublishedServerUrl=192.168.X.X and network_mode: 'host' lines in my docker compose, but the applications do not find Jellyfin I have to manually enter the server address

Is this normal?


RE: Discovery on docker - TheDreadPirate - 2024-08-24

Are ports 1900 and 7359 open on the host?


RE: Discovery on docker - Eric Mako - 2024-08-24

It's on my local network so it should work right? I don't have this problem when installing on bare metal


RE: Discovery on docker - TheDreadPirate - 2024-08-25

The host's firewall (not the router) needs those ports open.

You also don't need the JELLYFIN_PublishedServerUrl set if you are using host networking.


RE: Discovery on docker - Eric Mako - 2024-08-25

Oh I thought I had to use this line

# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=http://example.com

How should I set the host firewall? I never had this problem with the bare metal installation, it directly broadcast the server to the clients


RE: Discovery on docker - TheDreadPirate - 2024-08-25

What distro are you using?


RE: Discovery on docker - Eric Mako - 2024-08-25

Debian 12


RE: Discovery on docker - TheDreadPirate - 2024-08-25

Does Debian use UFW?

sudo ufw status ?

If Debian does use UFW it would be

sudo ufw enable
sudo ufw allow 8096
sudo ufw allow 7359
sudo ufw allow 1900


RE: Discovery on docker - Eric Mako - 2024-08-26

ufw is not installed, I'm trying to add the ports directly in docker compose and removing 'host' before installing ufw