For those that don’t love digging around and finding where to edit things, this is a much quicker way to add hardware acceleration in Jellyfin. This seems to require that you have Portainer though, as I can’t find anywhere in Docker to do this.
Under Runtime & resources in the Jellyfin container, add the following, assuming you have an Intel CPU and iGPU and hardware acceleration will be enabled.