r/podman • u/greenzaytun • 20d 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
u/Puzzled_Club_6525 20d ago edited 20d 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 20d 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 20d ago
If you're using quadlets, the syntax is a network file like caddy.network
[Network]NetworkName=caddyDriver=bridgeand then
[Container]Network=caddy.networkin each .container quadlet file for jellyfin and caddy. You can stil expose ports as normal with the
PublishPort=directive.1
u/greenzaytun 19d ago
Thank you for this. I'm gonna try this out. I may have been overthinking this.
1
u/audero 19d 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 18d 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 19d 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
2
u/dankmolot 20d 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.