2025-04-16, 03:43 PM
A couple of things.
1) You can remove the extra_hosts section. That is only required when using host networking so that health checks work.
2) Give jellyfin a static IP and explicitly set the hostname. And I recommend using jellyfin bridge IP for the caddyfile.
Ignore the "expose" section. My reverse proxy runs directly on the host and expose is required to make it accessible outside of the bridge network, but without port publishing on the host.
1) You can remove the extra_hosts section. That is only required when using host networking so that health checks work.
2) Give jellyfin a static IP and explicitly set the hostname. And I recommend using jellyfin bridge IP for the caddyfile.
Code:
jellyfin-prod:
image: ghcr.io/jellyfin/jellyfin:10.10.7
container_name: jellyfin-prod
hostname: jellyfin
user: ${MEDIAUSER}:${MEDIAUSER}
group_add:
- '${RENDER}' # Intel render group
networks:
blackmoon:
ipv4_address: 172.16.100.10
expose:
- 8096
volumes:
- ./jellyfin-prod-data/config:/config
- ./jellyfin-prod-data/cache:/cache
- /media/ramdisk:/media/ramdisk
- /media/library:/media/library:ro
- /media/library/liveTV:/media/library/liveTV:rw
devices:
- /dev/dri:/dev/dri
environment:
- TZ=${TZ}
restart: unless-stopped
Ignore the "expose" section. My reverse proxy runs directly on the host and expose is required to make it accessible outside of the bridge network, but without port publishing on the host.