r/podman • • 14d ago

Jellyfin Stack

Question about setting up a reverse proxy to access a rootless Jellyfin container?

What's the best/simplest way to go about this?

Is it best to use a network bridge to join or use PASTA?

I don't mind opening ports on my router as long as they're limited to 80 and 443 going straight to Caddy.

I would prefer not use Tailscale for this.

I managed this on docker compose using bridge networks before.

Any help, tips or recommended guides qould be greatly appreciated as there seems to be a lot less documentation for podman than docker, especially PASTA.

2 Upvotes

9 comments sorted by

2

u/dankmolot 14d ago

Personally I run caddy on host network, and forward ports from containers to host loopback. Then caddy just accesses host loopback and reverse proxies forwarded ports.

It is just easier this way if you have some non-container services.

1

u/greenzaytun 14d ago

Sorry I'm pretty new to networking. I think I understand this so the host loopback network is juts the network that the computer uses to communicate with itself internally and Caddy runs inside that instead of a .network container. Is that secure? What part of the stack is handling the port forwarding?

2

u/Puzzled_Club_6525 14d ago edited 14d ago

Add jellyfin to same docker network as caddy and then reverse proxy it with jellyfin:8096 and remove ports section from jellyfin compose

Edit: just now saw this post is in podman subreddit.

2

u/audero 14d ago

Exactly the same applies to podman, you just have to create a network and place the two podman containers within that network.

2

u/audero 14d ago

If you're using quadlets, the syntax is a network file like caddy.network

[Network]
NetworkName=caddy
Driver=bridge

and then

[Container]
Network=caddy.network

in each .container quadlet file for jellyfin and caddy. You can stil expose ports as normal with the PublishPort= directive.

1

u/greenzaytun 14d ago

Thank you for this. I'm gonna try this out. I may have been overthinking this.

1

u/audero 13d ago

Everyone talks about putting containers in “pods” but I have no idea what that actually is. There’s no equivalent to pods in docker, so I just use bridge networks in podman.

One caveat is that systemd hasn’t always picked up the .network quadlets automatically so I sometimes have to run podman network create caddy but it’s smooth sailing from there.

I use nginx proxy manager instead of caddy with Jellyfin but can post my full quadlets if you’re stuck.

1

u/greenzaytun 12d ago

That would be super helpful thank you! Yea I also started out thinking I should use pods but it seems like its not necessary for my use case and I rather stick to quadlets which I more or less understand though I think "quadlets" is a terrible name haha.

2

u/nmasse-itix 14d ago

I deploy my media stack with Podman in front of a traefik instance.

In this setup, all containers run as unprivileged user running in a rootfull container.

I try to avoid rootless container when possible to get a native network stack.

Plus, if you are ultra paranoid, you can enable userns in rootfull containers (best of both world).

https://github.com/nmasse-itix/podman-quadlet-cookbook/tree/main/cookbooks/seedbox